am a334d530
: am b38493cc
: am b0f9e9d4
: am 82fee7bd
: am b4158f0e
: Merge "Only offer migration between private volumes." into mnc-dev
* commit 'a334d53025fbbf187f5aad5abf61091f9c994e01': Only offer migration between private volumes.
This commit is contained in:
@@ -354,7 +354,9 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
// Only offer to migrate when not current storage
|
||||
final VolumeInfo privateVol = getActivity().getPackageManager()
|
||||
.getPrimaryStorageCurrentVolume();
|
||||
migrate.setVisible(!Objects.equals(mVolume, privateVol));
|
||||
migrate.setVisible((privateVol != null)
|
||||
&& (privateVol.getType() == VolumeInfo.TYPE_PRIVATE)
|
||||
&& !Objects.equals(mVolume, privateVol));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user