Add an Activity to handle Intents to invoke the Deletion Helper.
This will allow apps to launch the deletion helper when they need to have space freed up. To launch the activity using an intent, you can set it as follows: Intent intent = new Intent(Settings.ACTION_DELETION_HELPER_SETTINGS); startActivity(intent); This intent should bring up the Deletion Helper. Bug: 28675265 Change-Id: I781615ccad4ca1fcae97817ecb823e5dcad67b5b
This commit is contained in:
@@ -2901,6 +2901,17 @@
|
||||
android:value="true" />
|
||||
</activity>
|
||||
|
||||
<activity android:name="Settings$DeletionHelperActivity"
|
||||
android:label="@string/deletion_helper_title"
|
||||
android:taskAffinity="">
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.DELETION_HELPER_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.deletionhelper.DeletionHelperFragment" />
|
||||
</activity>
|
||||
|
||||
<service
|
||||
android:name=".SettingsDumpService"
|
||||
android:exported="true"
|
||||
|
@@ -139,6 +139,7 @@ public class Settings extends SettingsActivity {
|
||||
public static class ScreenLockSuggestionActivity extends ChooseLockGeneric { /* empty */ }
|
||||
public static class WallpaperSettingsActivity extends SettingsActivity { /* empty */ }
|
||||
public static class ManagedProfileSettingsActivity extends SettingsActivity { /* empty */ }
|
||||
public static class DeletionHelperActivity extends SettingsActivity { /* empty */ }
|
||||
|
||||
// Categories.
|
||||
public static class WirelessSettings extends SettingsActivity { /* empty */ }
|
||||
|
@@ -73,6 +73,7 @@ import com.android.settings.bluetooth.BluetoothSettings;
|
||||
import com.android.settings.dashboard.DashboardContainerFragment;
|
||||
import com.android.settings.dashboard.SearchResultsSummary;
|
||||
import com.android.settings.datausage.DataUsageSummary;
|
||||
import com.android.settings.deletionhelper.DeletionHelperFragment;
|
||||
import com.android.settings.deviceinfo.PrivateVolumeForget;
|
||||
import com.android.settings.deviceinfo.PrivateVolumeSettings;
|
||||
import com.android.settings.deviceinfo.PublicVolumeSettings;
|
||||
@@ -332,6 +333,7 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
WallpaperTypeSettings.class.getName(),
|
||||
VrListenerSettings.class.getName(),
|
||||
ManagedProfileSettings.class.getName(),
|
||||
DeletionHelperFragment.class.getName(),
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user