mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-09 02:21:11 +01:00
Replace "if(" with "if ("
This commit is contained in:
parent
6293f5f170
commit
3d46849673
17 changed files with 69 additions and 69 deletions
|
|
@ -36,7 +36,7 @@ public class PermissionUtils {
|
|||
}
|
||||
|
||||
public static void askPermissions(Activity context, String[] permissions) {
|
||||
if(context == null || permissions == null) return;
|
||||
if (context == null || permissions == null) return;
|
||||
|
||||
int result;
|
||||
Logger.showToast(context, context.getString(R.string.message_sudo_please_grant_permissions), true);
|
||||
|
|
@ -74,9 +74,9 @@ public class PermissionUtils {
|
|||
public static boolean validateDisplayOverOtherAppsPermissionForPostAndroid10(Context context) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return true;
|
||||
|
||||
if(!PermissionUtils.checkDisplayOverOtherAppsPermission(context)) {
|
||||
if (!PermissionUtils.checkDisplayOverOtherAppsPermission(context)) {
|
||||
TermuxAppSharedPreferences preferences = new TermuxAppSharedPreferences(context);
|
||||
if(preferences.getPluginErrorNotificationsEnabled())
|
||||
if (preferences.getPluginErrorNotificationsEnabled())
|
||||
Logger.showToast(context, context.getString(R.string.error_display_over_other_apps_permission_not_granted), true);
|
||||
return false;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue