Update the summary strings in the Deletion Helper to match the latest mocks.

Bug: 28917902
Change-Id: I35af7483f2a97dffc230093a90f0b7d87a4532c1
This commit is contained in:
Daniel Nishi
2016-05-23 18:11:49 -07:00
parent 3652f20efb
commit 84d944b0bc
3 changed files with 9 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ public class AppStateUsageStatsBridge extends AppStateBaseBridge {
private PackageManager mPm;
public static final long NEVER_USED = -1;
public static final long UNKNOWN_LAST_USE = -2;
public static final long UNUSED_DAYS_DELETION_THRESHOLD = 60;
public AppStateUsageStatsBridge(Context context, ApplicationsState appState,
Callback callback) {
@@ -105,7 +106,6 @@ public class AppStateUsageStatsBridge extends AppStateBaseBridge {
* usage is unknown, it is skipped.
*/
public static final AppFilter FILTER_USAGE_STATS = new AppFilter() {
private long UNUSED_DAYS_DELETION_THRESHOLD = 60;
@Override
public void init() {

View File

@@ -394,7 +394,8 @@ public class DeletionHelperFragment extends SettingsPreferenceFragment implement
mAppEntries.size()));
mApps.setSummary(app.getString(R.string.deletion_helper_apps_group_summary,
Formatter.formatFileSize(app,
getTotalAppsFreeableSpace(true))));
getTotalAppsFreeableSpace(true)),
AppStateUsageStatsBridge.UNUSED_DAYS_DELETION_THRESHOLD));
}
}