Set package name for learn more action

Test: Verified correct activit is launched from settings info button.
Bug: 193577587
Change-Id: If691b7d494b4fb43a4224385bf08787bd17d1d35
This commit is contained in:
Joshua Mccloskey
2021-07-19 22:24:43 -07:00
parent 92145ddf77
commit eafbcef5fd

View File

@@ -64,9 +64,9 @@ public class BiometricActionDisabledByAdminController extends BaseActionDisabled
return (dialog, which) -> {
Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component);
final Intent intent = new Intent(ACTION_LEARN_MORE)
.setComponent(enforcedAdmin.component)
.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);
};
}