Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4d487bc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Fix settings force close in monkey test."

parents 4e86bf67 d8e61555
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -63,7 +63,10 @@ public class AdvancedAppSettings extends SettingsPreferenceFragment implements
        addPreferencesFromResource(R.xml.advanced_apps);

        Preference permissions = getPreferenceScreen().findPreference(KEY_APP_PERM);
        permissions.setIntent(new Intent(Intent.ACTION_MANAGE_PERMISSIONS));
        final Intent intent = new Intent(Intent.ACTION_MANAGE_PERMISSIONS);
        if (!getPackageManager().queryIntentActivities(intent, 0).isEmpty()) {
            permissions.setIntent(intent);
        }

        ApplicationsState applicationsState = ApplicationsState.getInstance(
                getActivity().getApplication());