Direct insert of events when permission

This commit is contained in:
M66B
2023-03-15 10:56:43 +01:00
parent 00e9266a21
commit 20fa949297
4 changed files with 21 additions and 16 deletions

View File

@@ -3691,8 +3691,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
return;
}
if (BuildConfig.DEBUG &&
action == R.id.ibCalendar &&
if (action == R.id.ibCalendar &&
Helper.hasPermission(context, Manifest.permission.WRITE_CALENDAR)) {
Bundle args = new Bundle();
args.putLong("message", message.id);