[Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly. Test: build Bug: 323061508 Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
This commit is contained in:
@@ -52,7 +52,7 @@ public class FlashlightHandleActivity extends Activity implements Indexable {
|
||||
|
||||
// Caller's choice: fallback to homepage, or just exit?
|
||||
if (getIntent().getBooleanExtra(EXTRA_FALLBACK_TO_HOMEPAGE, false)) {
|
||||
startActivity(new Intent(Settings.ACTION_SETTINGS));
|
||||
startActivity(new Intent(Settings.ACTION_SETTINGS).setPackage(getPackageName()));
|
||||
}
|
||||
finish();
|
||||
}
|
||||
|
Reference in New Issue
Block a user