Fix can't access SD card from work profile
It may not be reasonable to access SD card from work profile launched File apps. This change hides 'Files' Preference for SD card in Storage Settings. Bug: 238386355 Test: manual visual Settings -> Storage -> SD card -> Work profile Change-Id: Ibdbba930335cb4690a93fa6218b2991e13a3eca6
This commit is contained in:
@@ -229,7 +229,7 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle
|
||||
mVolume = volume;
|
||||
|
||||
if (mPublicStoragePreference != null) {
|
||||
mPublicStoragePreference.setVisible(isValidPublicVolume());
|
||||
mPublicStoragePreference.setVisible(isValidPublicVolume() && !mIsWorkProfile);
|
||||
}
|
||||
|
||||
// If isValidPrivateVolume() is true, these preferences will become visible at
|
||||
|
Reference in New Issue
Block a user