Merge "Launch the following pages with new task flag." into sc-v2-dev

This commit is contained in:
Stanley Wang
2021-10-15 03:34:06 +00:00
committed by Android (Google) Code Review

View File

@@ -87,9 +87,9 @@ public abstract class LegalPreferenceController extends BasePreferenceController
} }
// Replace the intent with this specific activity // Replace the intent with this specific activity
mPreference.setIntent(new Intent().setClassName( mPreference.setIntent(new Intent()
resolveInfo.activityInfo.packageName, .setClassName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name)
resolveInfo.activityInfo.name)); .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
mPreference.setTitle(resolveInfo.loadLabel(mPackageManager)); mPreference.setTitle(resolveInfo.loadLabel(mPackageManager));
} }