packages\apps\Settings\src\com\android\settings\deviceinfo\Memory.java
mMemoryExts.initMtkCategory();
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
if (mMemoryExts.isAddInternalCategory()) {
//内部存储
//addCategory(StorageVolumePreferenceCategory.buildForInternal(context));
}
for (StorageVolume volume : storageVolumes){
if (mMemoryExts.isAddPhysicalCategory(volume)) {
//手机存储
addCategory(StorageVolumePreferenceCategory.buildForPhysical(context,volume));
}
}
本文档介绍了在Android Settings应用中如何移除存储页面的内部存储和手机存储显示。主要关注Memory.java文件,通过mMemoryExts初始化并检查是否添加内部存储类别。在onCreate方法中,遍历所有StorageVolume,并根据mMemoryExts判断是否添加物理存储类别。
2053

被折叠的 条评论
为什么被折叠?



