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

Commit 2366b9cf authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Renaming intent action for unknown sources

Renaming action MANAGE_EXTERNAL_SOURCES to MANAGE_UNKNOWN_APP_SOURCES to
be clearer about its purpose

Test: adb shell am instrument -w -e class \
'com.android.settings.applications.ExternalSourcesSettingsTest' \
'com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner'

cts-tradefed run singleCommand cts -m ExternalSources

Bug: 35812498
Change-Id: Id3601c6b908d045c008142b9ee214c8dc3ac23ef
parent 5b3de255
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -758,7 +758,7 @@ public class PackageInstallerActivity extends Activity implements OnClickListene
                                (dialog, which) -> {
                                    Intent settingsIntent = new Intent();
                                    settingsIntent.setAction(
                                            Settings.ACTION_MANAGE_EXTERNAL_SOURCES);
                                            Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES);
                                    final Uri packageUri = Uri.parse("package:" + argument);
                                    settingsIntent.setData(packageUri);
                                    try {
@@ -766,7 +766,7 @@ public class PackageInstallerActivity extends Activity implements OnClickListene
                                                REQUEST_TRUST_EXTERNAL_SOURCE);
                                    } catch (ActivityNotFoundException exc) {
                                        Log.e(TAG, "Settings activity not found for action: "
                                                + Settings.ACTION_MANAGE_EXTERNAL_SOURCES);
                                                + Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES);
                                    }
                                })
                        .setNegativeButton(R.string.cancel,