Update the deletion helper feature factory for photos and videos.

Bug: 28554187

Change-Id: I7fcc34af87ec17e9396f390d851fd31df1dc951a
This commit is contained in:
Daniel Nishi
2016-05-17 13:33:29 -07:00
parent 1ca6867e35
commit 76cd0118e9
3 changed files with 5 additions and 5 deletions

View File

@@ -26,8 +26,7 @@ import android.text.format.Formatter;
* Preference to handle the deletion of photos and videos in the Deletion Helper.
*/
public class PhotosDeletionPreference extends DeletionPreference {
// TODO(b/28560570): Remove this dummy value.
private static final int FAKE_DAYS_TO_KEEP = 30;
public static final int DAYS_TO_KEEP = 30;
public PhotosDeletionPreference(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -42,7 +41,7 @@ public class PhotosDeletionPreference extends DeletionPreference {
Context context = getContext();
setTitle(context.getString(R.string.deletion_helper_photos_title, items));
setSummary(context.getString(R.string.deletion_helper_photos_summary,
Formatter.formatFileSize(context, bytes), FAKE_DAYS_TO_KEEP));
Formatter.formatFileSize(context, bytes), DAYS_TO_KEEP));
}
@Override