Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b06fba90 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof Committed by Gitsaibot
Browse files

Allow edit events without contact permission (Closes: #422) (#475)

Don't close the edit view when asking for contact permission. This broke
with #367.
parent 85fb4a51
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -575,6 +575,9 @@ public class EditEventFragment extends Fragment implements EventHandler, OnColor
            mOnDone.setDoneCode(Utils.DONE_SAVE);
            mOnDone.run();
        }
        if (act !=null && (Build.VERSION.SDK_INT < 23 ||
                    ContextCompat.checkSelfPermission(EditEventFragment.this.getActivity(),
                        Manifest.permission.READ_CONTACTS) == PackageManager.PERMISSION_GRANTED))
            act.finish();
        super.onPause();
    }