Fixed API level

pull/174/head
M66B 5 years ago
parent 08e850ee35
commit b3f25a0ffe

@ -382,7 +382,7 @@ public class FragmentBase extends Fragment {
@Override @Override
protected void onException(Bundle args, Throwable ex) { 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) { if (ex instanceof RecoverableSecurityException) {
handle((RecoverableSecurityException) ex); handle((RecoverableSecurityException) ex);
return; return;
@ -464,7 +464,7 @@ public class FragmentBase extends Fragment {
@Override @Override
protected void onException(Bundle args, Throwable ex) { 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) { if (ex instanceof RecoverableSecurityException) {
handle((RecoverableSecurityException) ex); handle((RecoverableSecurityException) ex);
return; return;
@ -478,7 +478,7 @@ public class FragmentBase extends Fragment {
}.execute(this, args, "attachments:save"); }.execute(this, args, "attachments:save");
} }
@RequiresApi(api = Build.VERSION_CODES.O) @RequiresApi(api = Build.VERSION_CODES.Q)
private void handle(RecoverableSecurityException ex) { private void handle(RecoverableSecurityException ex) {
new AlertDialog.Builder(getContext()) new AlertDialog.Builder(getContext())
.setMessage(ex.getMessage()) .setMessage(ex.getMessage())

Loading…
Cancel
Save