mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Fixed API level
This commit is contained in:
@@ -382,7 +382,7 @@ public class FragmentBase extends Fragment {
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
if (ex instanceof RecoverableSecurityException) {
|
||||
handle((RecoverableSecurityException) ex);
|
||||
return;
|
||||
@@ -464,7 +464,7 @@ public class FragmentBase extends Fragment {
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
if (ex instanceof RecoverableSecurityException) {
|
||||
handle((RecoverableSecurityException) ex);
|
||||
return;
|
||||
@@ -478,7 +478,7 @@ public class FragmentBase extends Fragment {
|
||||
}.execute(this, args, "attachments:save");
|
||||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.O)
|
||||
@RequiresApi(api = Build.VERSION_CODES.Q)
|
||||
private void handle(RecoverableSecurityException ex) {
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setMessage(ex.getMessage())
|
||||
|
||||
Reference in New Issue
Block a user