[Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly. Test: build Bug: 323061508 Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
This commit is contained in:
@@ -223,8 +223,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
@Override
|
||||
public void openTileIntent(FragmentActivity activity, Tile tile) {
|
||||
if (tile == null) {
|
||||
Intent intent = new Intent(Settings.ACTION_SETTINGS).addFlags(
|
||||
Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
Intent intent = new Intent(Settings.ACTION_SETTINGS)
|
||||
.setPackage(mContext.getPackageName())
|
||||
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
mContext.startActivity(intent);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user