Skip to content

Instantly share code, notes, and snippets.

@knightfall
Created November 11, 2018 04:19
Show Gist options
  • Save knightfall/e07fcecf2a44d77f29069eeb39704ad8 to your computer and use it in GitHub Desktop.
Save knightfall/e07fcecf2a44d77f29069eeb39704ad8 to your computer and use it in GitHub Desktop.
Decompiled pathao app 3.2.1 com.pathao.user.p010ui.core.home.view.HomeFragment.java
private void handlePermissionTaks() {
if (!PathaoApplication.getInstance().getPermissionManager().shouldShowPermissionRequest(PermissionManager.CALL_FROM_LANDING)) {
if (PathaoApplication.getInstance().getPermissionManager().hasLocationPermission(getActivity())) {
accessUserLocation();
}
if (PathaoApplication.getInstance().getPermissionManager().hasSMSPermission(getActivity()) || PathaoApplication.getInstance().getPermissionManager().hasContactPermission(getActivity())) {
startSMSContactSync();
}
} else if (PathaoApplication.getInstance().getPermissionManager().hasLocationPermission(getActivity())) {
PathaoApplication.getInstance().getPermissionManager().requestForAllInitialPermission(getActivity());
} else {
showRequiredPermissionDialog();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment