[Panlingual] Fix the app language is shown incorrectly in the work profile
The root cause is that the context corresponding to the specified profile Id is not correctly used when using LocaleManager to query the app language. Bug: 222769707 Test: Verify the issue by using the steps provided in the bug Change-Id: Ic1f9e4cc9e90f5aecfa5e1094184aa63f3d94ffb
This commit is contained in:
@@ -638,6 +638,7 @@ public class ManageApplications extends InstrumentedFragment
|
||||
case LIST_TYPE_APPS_LOCALE:
|
||||
Intent intent = new Intent(getContext(), AppLocalePickerActivity.class);
|
||||
intent.setData(Uri.parse("package:" + mCurrentPkgName));
|
||||
intent.putExtra(AppInfoBase.ARG_PACKAGE_UID, mCurrentUid);
|
||||
startActivity(intent);
|
||||
break;
|
||||
// TODO: Figure out if there is a way where we can spin up the profile's settings
|
||||
@@ -1561,8 +1562,7 @@ public class ManageApplications extends InstrumentedFragment
|
||||
holder.setSummary(MediaManagementAppsDetails.getSummary(mContext, entry));
|
||||
break;
|
||||
case LIST_TYPE_APPS_LOCALE:
|
||||
holder.setSummary(AppLocaleDetails
|
||||
.getSummary(mContext, entry.info.packageName));
|
||||
holder.setSummary(AppLocaleDetails.getSummary(mContext, entry));
|
||||
break;
|
||||
default:
|
||||
holder.updateSizeText(entry, mManageApplications.mInvalidSizeStr, mWhichSize);
|
||||
|
Reference in New Issue
Block a user