Merge "Set package name for learn more action" into sc-dev

This commit is contained in:
Joshua Mccloskey
2021-08-02 19:59:32 +00:00
committed by Android (Google) Code Review

View File

@@ -64,9 +64,9 @@ public class BiometricActionDisabledByAdminController extends BaseActionDisabled
return (dialog, which) -> { return (dialog, which) -> {
Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component); Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component);
final Intent intent = new Intent(ACTION_LEARN_MORE) final Intent intent = new Intent(ACTION_LEARN_MORE)
.setComponent(enforcedAdmin.component)
.putExtra(EXTRA_SETTING_KEY, EXTRA_SETTING_VALUE) .putExtra(EXTRA_SETTING_KEY, EXTRA_SETTING_VALUE)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.setPackage(enforcedAdmin.component.getPackageName());
context.startActivity(intent); context.startActivity(intent);
}; };
} }