Merge "Update the deletion helper intent string." into nyc-mr1-dev

This commit is contained in:
Daniel Nishi
2016-06-29 21:37:05 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Bundle; import android.os.Bundle;
import android.os.storage.StorageManager;
import android.provider.Settings; import android.provider.Settings;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
@@ -116,7 +117,7 @@ public class AutomaticStorageManagerSettings extends SettingsPreferenceFragment
@Override @Override
public boolean onPreferenceClick(Preference preference) { public boolean onPreferenceClick(Preference preference) {
if (KEY_DELETION_HELPER.equals(preference.getKey())) { if (KEY_DELETION_HELPER.equals(preference.getKey())) {
Intent intent = new Intent(Settings.ACTION_DELETION_HELPER_SETTINGS); Intent intent = new Intent(StorageManager.ACTION_MANAGE_STORAGE);
getContext().startActivity(intent); getContext().startActivity(intent);
} }
return true; return true;

View File

@@ -445,7 +445,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
return true; return true;
case R.id.storage_free: case R.id.storage_free:
final Intent deletion_helper_intent = final Intent deletion_helper_intent =
new Intent(Settings.ACTION_DELETION_HELPER_SETTINGS); new Intent(StorageManager.ACTION_MANAGE_STORAGE);
startActivity(deletion_helper_intent); startActivity(deletion_helper_intent);
return true; return true;
} }