diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-07-09 15:42:36 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-07-09 15:43:07 -0700 |
commit | f03bd4f5470eed9808a0e6f345de94f4e578ae85 (patch) | |
tree | 8f8acd48bd11103965c056f8c5d39ba72aa6199e /src/com/android/launcher3/CommonAppTypeParser.java | |
parent | 8dd3ce65d827ec0c46005e9d3c69c4e506ed74a1 (diff) | |
download | android_packages_apps_Trebuchet-f03bd4f5470eed9808a0e6f345de94f4e578ae85.tar.gz android_packages_apps_Trebuchet-f03bd4f5470eed9808a0e6f345de94f4e578ae85.tar.bz2 android_packages_apps_Trebuchet-f03bd4f5470eed9808a0e6f345de94f4e578ae85.zip |
Build fix.
Missed some traces of key-value backup
Change-Id: Ifda94aa27aa53625bfb7ca173c6750c1b2433669
Diffstat (limited to 'src/com/android/launcher3/CommonAppTypeParser.java')
-rw-r--r-- | src/com/android/launcher3/CommonAppTypeParser.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/com/android/launcher3/CommonAppTypeParser.java b/src/com/android/launcher3/CommonAppTypeParser.java index a4a92b6bf..c2bd8832c 100644 --- a/src/com/android/launcher3/CommonAppTypeParser.java +++ b/src/com/android/launcher3/CommonAppTypeParser.java @@ -25,7 +25,6 @@ import android.util.Log; import com.android.launcher3.AutoInstallsLayout.LayoutParserCallback; import com.android.launcher3.LauncherSettings.Favorites; -import com.android.launcher3.backup.nano.BackupProtos.Favorite; import com.android.launcher3.util.Thunk; import org.xmlpull.v1.XmlPullParserException; @@ -43,6 +42,12 @@ public class CommonAppTypeParser implements LayoutParserCallback { private static final int RESTORE_FLAG_BIT_SHIFT = 4; + public static final int TARGET_PHONE = 1; + public static final int TARGET_MESSENGER = 2; + public static final int TARGET_EMAIL = 3; + public static final int TARGET_BROWSER = 4; + public static final int TARGET_GALLERY = 5; + public static final int TARGET_CAMERA = 6; private final long mItemId; @Thunk final int mResId; @@ -118,22 +123,22 @@ public class CommonAppTypeParser implements LayoutParserCallback { public static int getResourceForItemType(int type) { switch (type) { - case Favorite.TARGET_PHONE: + case TARGET_PHONE: return R.xml.app_target_phone; - case Favorite.TARGET_MESSENGER: + case TARGET_MESSENGER: return R.xml.app_target_messenger; - case Favorite.TARGET_EMAIL: + case TARGET_EMAIL: return R.xml.app_target_email; - case Favorite.TARGET_BROWSER: + case TARGET_BROWSER: return R.xml.app_target_browser; - case Favorite.TARGET_GALLERY: + case TARGET_GALLERY: return R.xml.app_target_gallery; - case Favorite.TARGET_CAMERA: + case TARGET_CAMERA: return R.xml.app_target_camera; default: |