Change description of privacy icons in Statusbar

Use the more verbose description "Applications are using your..." for
camera and microphone.

Test: manual, TB
Fixes: 163172684
Change-Id: I53dff2972a2b2315982e3ff13a88e50c7abc0063
This commit is contained in:
Fabian Kozynski
2020-08-10 15:25:10 -04:00
parent 515db30387
commit e88a27f827

View File

@@ -284,13 +284,22 @@ public class PhoneStatusBarPolicy
mResources.getString(R.string.accessibility_data_saver_on));
mIconController.setIconVisibility(mSlotDataSaver, false);
// 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(),
mResources.getString(PrivacyType.TYPE_MICROPHONE.getNameId()));
microphoneDesc);
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(),
mResources.getString(PrivacyType.TYPE_CAMERA.getNameId()));
cameraDesc);
mIconController.setIconVisibility(mSlotCamera, false);
mIconController.setIcon(mSlotLocation, LOCATION_STATUS_ICON_ID,
mResources.getString(R.string.accessibility_location_active));
mIconController.setIconVisibility(mSlotLocation, false);