Loading res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -108,4 +108,9 @@ <!-- Whether or not App & Notification screen should display recently used apps --> <bool name="config_display_recent_apps">true</bool> <!-- Package name for the storage manager to use from Settings search. --> <string name="config_deletion_helper_package" translatable="false">com.android.storagemanager</string> <!-- Class name for the storage manager's deletion helper class. --> <string name="config_deletion_helper_class" translatable="false">com.android.storagemanager.deletionhelper.DeletionHelperActivity</string> </resources> src/com/android/settings/deviceinfo/StorageSettings.java +80 −70 Original line number Diff line number Diff line Loading @@ -549,13 +549,12 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index } }; /** * Enable indexing of searchable data */ /** Enable indexing of searchable data */ public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = new BaseSearchIndexProvider() { @Override public List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled) { public List<SearchIndexableRaw> getRawDataToIndex( Context context, boolean enabled) { final List<SearchIndexableRaw> result = new ArrayList<SearchIndexableRaw>(); SearchIndexableRaw data = new SearchIndexableRaw(context); Loading Loading @@ -619,6 +618,17 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index data.screenTitle = context.getString(R.string.storage_settings); result.add(data); data = new SearchIndexableRaw(context); data.title = context.getString(R.string.storage_menu_free); data.screenTitle = context.getString(R.string.storage_menu_free); // We need to define all three in order for this to trigger properly. data.intentAction = StorageManager.ACTION_MANAGE_STORAGE; data.intentTargetPackage = context.getString(R.string.config_deletion_helper_package); data.intentTargetClass = context.getString(R.string.config_deletion_helper_class); result.add(data); return result; } }; Loading Loading
res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -108,4 +108,9 @@ <!-- Whether or not App & Notification screen should display recently used apps --> <bool name="config_display_recent_apps">true</bool> <!-- Package name for the storage manager to use from Settings search. --> <string name="config_deletion_helper_package" translatable="false">com.android.storagemanager</string> <!-- Class name for the storage manager's deletion helper class. --> <string name="config_deletion_helper_class" translatable="false">com.android.storagemanager.deletionhelper.DeletionHelperActivity</string> </resources>
src/com/android/settings/deviceinfo/StorageSettings.java +80 −70 Original line number Diff line number Diff line Loading @@ -549,13 +549,12 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index } }; /** * Enable indexing of searchable data */ /** Enable indexing of searchable data */ public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = new BaseSearchIndexProvider() { @Override public List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled) { public List<SearchIndexableRaw> getRawDataToIndex( Context context, boolean enabled) { final List<SearchIndexableRaw> result = new ArrayList<SearchIndexableRaw>(); SearchIndexableRaw data = new SearchIndexableRaw(context); Loading Loading @@ -619,6 +618,17 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index data.screenTitle = context.getString(R.string.storage_settings); result.add(data); data = new SearchIndexableRaw(context); data.title = context.getString(R.string.storage_menu_free); data.screenTitle = context.getString(R.string.storage_menu_free); // We need to define all three in order for this to trigger properly. data.intentAction = StorageManager.ACTION_MANAGE_STORAGE; data.intentTargetPackage = context.getString(R.string.config_deletion_helper_package); data.intentTargetClass = context.getString(R.string.config_deletion_helper_class); result.add(data); return result; } }; Loading