Cleanup some plurals in Settings
Change <one> to <1> in string res file, and update related java files. Test: Update, existing test still pass. bug: 199230342 Change-Id: Idd0ba3c6adc060da21574d98f8ed765fae00cef8
This commit is contained in:
@@ -21,6 +21,7 @@ import android.content.Context;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settingslib.utils.StringUtil;
|
||||
|
||||
|
||||
public class ManageDeviceAdminPreferenceController extends BasePreferenceController {
|
||||
@@ -47,8 +48,8 @@ public class ManageDeviceAdminPreferenceController extends BasePreferenceControl
|
||||
}
|
||||
|
||||
// TODO: override
|
||||
return mContext.getResources().getQuantityString(R.plurals.number_of_device_admins,
|
||||
activeAdmins, activeAdmins);
|
||||
return StringUtil.getIcuPluralsString(mContext, activeAdmins,
|
||||
R.string.number_of_device_admins);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user