Refactoring

pull/178/head
M66B 5 years ago
parent cedbebf2d0
commit 5ac07d0e03

@ -479,9 +479,8 @@ public class FragmentSetup extends FragmentBase {
super.onActivityResult(requestCode, resultCode, data);
try {
if (requestCode == ActivitySetup.REQUEST_STILL && resultCode != Activity.RESULT_OK)
((FragmentBase) getParentFragment()).finish();
else {
if (requestCode == ActivitySetup.REQUEST_STILL)
if (resultCode == Activity.RESULT_OK) {
boolean hasPermissions = hasPermission(Manifest.permission.READ_CONTACTS);
Boolean isIgnoring = Helper.isIgnoringOptimizations(getContext());
@ -499,7 +498,8 @@ public class FragmentSetup extends FragmentBase {
view.scrollTo(0, top);
}
});
}
} else
((FragmentBase) getParentFragment()).finish();
} catch (Throwable ex) {
Log.e(ex);
}

Loading…
Cancel
Save