[Panlingual] Change the metric's string in Languages
Bug: 279915462 Test: manual Change-Id: I8e59f9acb068640da64d2a29cc6074b388994554
This commit is contained in:
@@ -216,7 +216,7 @@ class LocaleDragAndDropAdapter
|
||||
if (fromPosition != toPosition) {
|
||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider()
|
||||
.action(mContext, SettingsEnums.ACTION_REORDER_LANGUAGE,
|
||||
mDragLocale.getLocale().getDisplayName() + " move to " + toPosition);
|
||||
mDragLocale.getLocale().toLanguageTag() + " move to " + toPosition);
|
||||
}
|
||||
|
||||
notifyItemChanged(fromPosition); // to update the numbers
|
||||
@@ -259,7 +259,7 @@ class LocaleDragAndDropAdapter
|
||||
if (localeInfo.getChecked()) {
|
||||
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider()
|
||||
.action(mContext, SettingsEnums.ACTION_REMOVE_LANGUAGE,
|
||||
localeInfo.getLocale().getDisplayName());
|
||||
localeInfo.getLocale().toLanguageTag());
|
||||
mFeedItemList.remove(i);
|
||||
}
|
||||
}
|
||||
|
@@ -203,7 +203,7 @@ public class LocaleListEditor extends RestrictedSettingsFragment implements View
|
||||
mAdapter.addLocale(localeInfo);
|
||||
updateVisibilityOfRemoveMenu();
|
||||
mMetricsFeatureProvider.action(getContext(), SettingsEnums.ACTION_ADD_LANGUAGE,
|
||||
localeInfo.getLocale().getDisplayName());
|
||||
localeInfo.getLocale().toLanguageTag());
|
||||
} else if (requestCode == DIALOG_CONFIRM_SYSTEM_DEFAULT) {
|
||||
localeInfo = mAdapter.getFeedItemList().get(0);
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
@@ -218,7 +218,7 @@ public class LocaleListEditor extends RestrictedSettingsFragment implements View
|
||||
localeDialogFragment.show(mFragmentManager, TAG_DIALOG_NOT_AVAILABLE);
|
||||
mMetricsFeatureProvider.action(getContext(),
|
||||
SettingsEnums.ACTION_NOT_SUPPORTED_SYSTEM_LANGUAGE,
|
||||
localeInfo.getLocale().getDisplayName());
|
||||
localeInfo.getLocale().toLanguageTag());
|
||||
}
|
||||
} else {
|
||||
mAdapter.notifyListChanged(localeInfo);
|
||||
|
Reference in New Issue
Block a user