mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 10:35:15 +01:00
Refactoring
This commit is contained in:
@@ -136,4 +136,11 @@ public class FragmentBase extends Fragment {
|
||||
Bundle args = getArguments();
|
||||
return (args != null && args.getBoolean("pane"));
|
||||
}
|
||||
|
||||
boolean hasPermission(String name) {
|
||||
ActivityBase activity = (ActivityBase) getActivity();
|
||||
if (activity == null)
|
||||
return false;
|
||||
return activity.hasPermission(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user