Refactoring

This commit is contained in:
M66B
2019-02-07 09:02:40 +00:00
parent 99732b22c3
commit adbfa01b41
9 changed files with 25 additions and 28 deletions

View File

@@ -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);
}
}