diff options
author | Helena Josol <helenajosol@google.com> | 2014-10-06 16:06:46 +0100 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2015-09-27 14:59:01 -0700 |
commit | a8f7b6a9f33fcedd6f1e429606e1241d7ed7e54b (patch) | |
tree | 3c68a489fe263eb2f70833b6dbb0be5f44c73cbb /src/com/android/launcher3/LauncherFiles.java | |
parent | 0e6e432422c5c685f8878086c2c5b891cd44cf4f (diff) | |
download | android_packages_apps_Trebuchet-a8f7b6a9f33fcedd6f1e429606e1241d7ed7e54b.tar.gz android_packages_apps_Trebuchet-a8f7b6a9f33fcedd6f1e429606e1241d7ed7e54b.tar.bz2 android_packages_apps_Trebuchet-a8f7b6a9f33fcedd6f1e429606e1241d7ed7e54b.zip |
Create a central list of files the Launcher writes to the app directory
Replace hardcoded Launcher filenames with the defined constants.
Bug: 12753154
Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
Diffstat (limited to 'src/com/android/launcher3/LauncherFiles.java')
-rw-r--r-- | src/com/android/launcher3/LauncherFiles.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherFiles.java b/src/com/android/launcher3/LauncherFiles.java new file mode 100644 index 000000000..89600c2df --- /dev/null +++ b/src/com/android/launcher3/LauncherFiles.java @@ -0,0 +1,27 @@ +package com.android.launcher3; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * Central list of files the Launcher writes to the application data directory. + * + * To add a new Launcher file, create a String constant referring to the filename, and add it to + * ALL_FILES, as shown below. + */ +public class LauncherFiles { + + public static final String SHARED_PREFS = "com.android.launcher3.prefs.xml"; + public static final String LAUNCHER_DB = "launcher.db"; + public static final String LAUNCHER_PREFS = "launcher.preferences"; + public static final String WALLPAPER_IMAGES_DB = "saved_wallpaper_images.db"; + public static final String WIDGET_PREVIEWS_DB = "widgetpreviews.db"; + + public static final List<String> ALL_FILES = Collections.unmodifiableList(Arrays.asList( + SHARED_PREFS, + LAUNCHER_DB, + LAUNCHER_PREFS, + WALLPAPER_IMAGES_DB, + WIDGET_PREVIEWS_DB)); +} |