diff --git a/app/src/main/java/com/jkcarino/ankieditor/ui/editor/EditorFragment.kt b/app/src/main/java/com/jkcarino/ankieditor/ui/editor/EditorFragment.kt index 3d980d2..cabab5d 100644 --- a/app/src/main/java/com/jkcarino/ankieditor/ui/editor/EditorFragment.kt +++ b/app/src/main/java/com/jkcarino/ankieditor/ui/editor/EditorFragment.kt @@ -145,7 +145,7 @@ class EditorFragment : Fragment(), EditorContract.View, EasyPermissions.Permissi @AfterPermissionGranted(RC_AD_READ_WRITE_PERM) private fun requestAnkiDroidPermissionIfNecessary() { if (EasyPermissions.hasPermissions( - activity?.applicationContext, + activity!!.applicationContext, AddContentApi.READ_WRITE_PERMISSION)) { loadAnkiEditor() } else { diff --git a/build.gradle b/build.gradle index f7241e9..17cac74 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { 'support_library' : '27.0.2', 'constraint_layout': '1.0.2', 'kotlin' : '1.2.21', - 'easypermissions' : '0.4.3', + 'easypermissions' : '1.1.3', 'ankidroid_api' : '1.1.0alpha5', 'rtexteditorview' : '0.1.1', 'color_picker' : '1.0.1'