Merge "Change description of privacy icons in Statusbar" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6bace95e52
@@ -284,13 +284,22 @@ public class PhoneStatusBarPolicy
|
|||||||
mResources.getString(R.string.accessibility_data_saver_on));
|
mResources.getString(R.string.accessibility_data_saver_on));
|
||||||
mIconController.setIconVisibility(mSlotDataSaver, false);
|
mIconController.setIconVisibility(mSlotDataSaver, false);
|
||||||
|
|
||||||
|
|
||||||
// privacy items
|
// privacy items
|
||||||
|
String microphoneString = mResources.getString(PrivacyType.TYPE_MICROPHONE.getNameId());
|
||||||
|
String microphoneDesc = mResources.getString(
|
||||||
|
R.string.ongoing_privacy_chip_content_multiple_apps, microphoneString);
|
||||||
mIconController.setIcon(mSlotMicrophone, PrivacyType.TYPE_MICROPHONE.getIconId(),
|
mIconController.setIcon(mSlotMicrophone, PrivacyType.TYPE_MICROPHONE.getIconId(),
|
||||||
mResources.getString(PrivacyType.TYPE_MICROPHONE.getNameId()));
|
microphoneDesc);
|
||||||
mIconController.setIconVisibility(mSlotMicrophone, false);
|
mIconController.setIconVisibility(mSlotMicrophone, false);
|
||||||
|
|
||||||
|
String cameraString = mResources.getString(PrivacyType.TYPE_CAMERA.getNameId());
|
||||||
|
String cameraDesc = mResources.getString(
|
||||||
|
R.string.ongoing_privacy_chip_content_multiple_apps, cameraString);
|
||||||
mIconController.setIcon(mSlotCamera, PrivacyType.TYPE_CAMERA.getIconId(),
|
mIconController.setIcon(mSlotCamera, PrivacyType.TYPE_CAMERA.getIconId(),
|
||||||
mResources.getString(PrivacyType.TYPE_CAMERA.getNameId()));
|
cameraDesc);
|
||||||
mIconController.setIconVisibility(mSlotCamera, false);
|
mIconController.setIconVisibility(mSlotCamera, false);
|
||||||
|
|
||||||
mIconController.setIcon(mSlotLocation, LOCATION_STATUS_ICON_ID,
|
mIconController.setIcon(mSlotLocation, LOCATION_STATUS_ICON_ID,
|
||||||
mResources.getString(R.string.accessibility_location_active));
|
mResources.getString(R.string.accessibility_location_active));
|
||||||
mIconController.setIconVisibility(mSlotLocation, false);
|
mIconController.setIconVisibility(mSlotLocation, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user