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

Commit 02602b9b authored by Rebecca Silberstein's avatar Rebecca Silberstein Committed by android-build-merger
Browse files

TetherSettings: check provisionApp array length

am: 39f0e41e

Change-Id: I25e14b85e810e9423e8c89d8449e2826acb77e74
parents 5674358d 39f0e41e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -509,6 +509,9 @@ public class TetherSettings extends RestrictedSettingsFragment
    private static boolean isIntentAvailable(Context context) {
        String[] provisionApp = context.getResources().getStringArray(
                com.android.internal.R.array.config_mobile_hotspot_provision_app);
        if (provisionApp.length < 2) {
            return false;
        }
        final PackageManager packageManager = context.getPackageManager();
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.setClassName(provisionApp[0], provisionApp[1]);