Merge "Fix incorrect strings in MiniResolver" into udc-dev am: 0549240152
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22886556 Change-Id: Ia27ee12a7533ffba8b31f04a8641a56b07ac16bc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1725,16 +1725,17 @@ public class ResolverActivity extends Activity implements
|
|||||||
|
|
||||||
if (inWorkProfile) {
|
if (inWorkProfile) {
|
||||||
((TextView) findViewById(R.id.open_cross_profile)).setText(
|
((TextView) findViewById(R.id.open_cross_profile)).setText(
|
||||||
devicePolicyResourcesManager.getString(MINIRESOLVER_OPEN_IN_WORK,
|
devicePolicyResourcesManager.getString(MINIRESOLVER_OPEN_IN_PERSONAL,
|
||||||
() -> getString(R.string.miniresolver_open_in_work, targetDisplayLabel),
|
() -> getString(R.string.miniresolver_open_in_personal,
|
||||||
|
targetDisplayLabel),
|
||||||
targetDisplayLabel));
|
targetDisplayLabel));
|
||||||
((Button) findViewById(R.id.use_same_profile_browser)).setText(
|
((Button) findViewById(R.id.use_same_profile_browser)).setText(
|
||||||
devicePolicyResourcesManager.getString(MINIRESOLVER_USE_WORK_BROWSER,
|
devicePolicyResourcesManager.getString(MINIRESOLVER_USE_WORK_BROWSER,
|
||||||
() -> getString(R.string.miniresolver_use_work_browser)));
|
() -> getString(R.string.miniresolver_use_work_browser)));
|
||||||
} else {
|
} else {
|
||||||
((TextView) findViewById(R.id.open_cross_profile)).setText(
|
((TextView) findViewById(R.id.open_cross_profile)).setText(
|
||||||
devicePolicyResourcesManager.getString(MINIRESOLVER_OPEN_IN_PERSONAL,
|
devicePolicyResourcesManager.getString(MINIRESOLVER_OPEN_IN_WORK,
|
||||||
() -> getString(R.string.miniresolver_open_in_personal,
|
() -> getString(R.string.miniresolver_open_in_work,
|
||||||
targetDisplayLabel),
|
targetDisplayLabel),
|
||||||
targetDisplayLabel));
|
targetDisplayLabel));
|
||||||
((Button) findViewById(R.id.use_same_profile_browser)).setText(
|
((Button) findViewById(R.id.use_same_profile_browser)).setText(
|
||||||
|
|||||||
Reference in New Issue
Block a user