Merge "Make migrate option menu invisible when src volume is not mounted" am: 6db9f21256 am: b084c60686
am: 4036866211
Change-Id: I25f21e3c176e225db6900d3c93b6a8860e701061
This commit is contained in:
@@ -67,7 +67,8 @@ public class PrivateVolumeOptionMenuController implements LifecycleObserver, OnC
|
||||
if (migrate != null) {
|
||||
migrate.setVisible((privateVol != null)
|
||||
&& (privateVol.getType() == VolumeInfo.TYPE_PRIVATE)
|
||||
&& !Objects.equals(mVolumeInfo, privateVol));
|
||||
&& !Objects.equals(mVolumeInfo, privateVol)
|
||||
&& privateVol.isMountedWritable());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -416,7 +416,8 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
.getPrimaryStorageCurrentVolume();
|
||||
migrate.setVisible((privateVol != null)
|
||||
&& (privateVol.getType() == VolumeInfo.TYPE_PRIVATE)
|
||||
&& !Objects.equals(mVolume, privateVol));
|
||||
&& !Objects.equals(mVolume, privateVol)
|
||||
&& privateVol.isMountedWritable());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user