diff options
-rw-r--r-- | proguard.flags | 6 | ||||
-rw-r--r-- | res/drawable-hdpi/ic_launcher_market_holo.png | bin | 1644 -> 0 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_launcher_market_holo.png | bin | 1124 -> 0 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_launcher_market_holo.png | bin | 2187 -> 0 bytes | |||
-rw-r--r-- | src/com/android/launcher3/LauncherProvider.java | 4 | ||||
-rw-r--r-- | src/com/android/launcher3/LauncherSettings.java | 32 |
6 files changed, 27 insertions, 15 deletions
diff --git a/proguard.flags b/proguard.flags index 83a491dfd..e2a4b5b31 100644 --- a/proguard.flags +++ b/proguard.flags @@ -6,7 +6,6 @@ public void onClickVoiceButton(android.view.View); public void onClickConfigureButton(android.view.View); public void onClickAllAppsButton(android.view.View); - public void onClickAppMarketButton(android.view.View); public void dismissFirstRunCling(android.view.View); public void dismissMigrationClingCopyApps(android.view.View); public void dismissMigrationClingUseDefault(android.view.View); @@ -62,3 +61,8 @@ public int getBrightness(); public void setBrightness(int); } + +-keep class com.android.launcher3.AppsContainerRecyclerView { + public void setFastScrollerAlpha(float); + public float getFastScrollerAlpha(); +}
\ No newline at end of file diff --git a/res/drawable-hdpi/ic_launcher_market_holo.png b/res/drawable-hdpi/ic_launcher_market_holo.png Binary files differdeleted file mode 100644 index dc7825114..000000000 --- a/res/drawable-hdpi/ic_launcher_market_holo.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_launcher_market_holo.png b/res/drawable-mdpi/ic_launcher_market_holo.png Binary files differdeleted file mode 100644 index cacb37484..000000000 --- a/res/drawable-mdpi/ic_launcher_market_holo.png +++ /dev/null diff --git a/res/drawable-xhdpi/ic_launcher_market_holo.png b/res/drawable-xhdpi/ic_launcher_market_holo.png Binary files differdeleted file mode 100644 index 958f0de3c..000000000 --- a/res/drawable-xhdpi/ic_launcher_market_holo.png +++ /dev/null diff --git a/src/com/android/launcher3/LauncherProvider.java b/src/com/android/launcher3/LauncherProvider.java index d75ef738a..f9f5ae1bb 100644 --- a/src/com/android/launcher3/LauncherProvider.java +++ b/src/com/android/launcher3/LauncherProvider.java @@ -69,8 +69,8 @@ public class LauncherProvider extends ContentProvider { static final String OLD_AUTHORITY = "com.android.launcher2.settings"; static final String AUTHORITY = ProviderConfig.AUTHORITY; - static final String TABLE_FAVORITES = "favorites"; - static final String TABLE_WORKSPACE_SCREENS = "workspaceScreens"; + static final String TABLE_FAVORITES = LauncherSettings.Favorites.TABLE_NAME; + static final String TABLE_WORKSPACE_SCREENS = LauncherSettings.WorkspaceScreens.TABLE_NAME; static final String EMPTY_DATABASE_CREATED = "EMPTY_DATABASE_CREATED"; private static final String URI_PARAM_IS_EXTERNAL_ADD = "isExternalAdd"; diff --git a/src/com/android/launcher3/LauncherSettings.java b/src/com/android/launcher3/LauncherSettings.java index 111de409e..90e60e450 100644 --- a/src/com/android/launcher3/LauncherSettings.java +++ b/src/com/android/launcher3/LauncherSettings.java @@ -19,6 +19,8 @@ package com.android.launcher3; import android.net.Uri; import android.provider.BaseColumns; +import com.android.launcher3.config.ProviderConfig; + /** * Settings related utilities. */ @@ -45,7 +47,7 @@ public class LauncherSettings { * an Intent that can be launched. * <P>Type: TEXT</P> */ - static final String INTENT = "intent"; + public static final String INTENT = "intent"; /** * The type of the gesture @@ -104,29 +106,35 @@ public class LauncherSettings { * * Tracks the order of workspace screens. */ - static final class WorkspaceScreens implements ChangeLogColumns { + public static final class WorkspaceScreens implements ChangeLogColumns { + + public static final String TABLE_NAME = "workspaceScreens"; + /** * The content:// style URL for this table */ static final Uri CONTENT_URI = Uri.parse("content://" + - LauncherProvider.AUTHORITY + "/" + LauncherProvider.TABLE_WORKSPACE_SCREENS); + ProviderConfig.AUTHORITY + "/" + TABLE_NAME); /** * The rank of this screen -- ie. how it is ordered relative to the other screens. * <P>Type: INTEGER</P> */ - static final String SCREEN_RANK = "screenRank"; + public static final String SCREEN_RANK = "screenRank"; } /** * Favorites. */ public static final class Favorites implements BaseLauncherColumns { + + public static final String TABLE_NAME = "favorites"; + /** * The content:// style URL for this table */ - static final Uri CONTENT_URI = Uri.parse("content://" + - LauncherProvider.AUTHORITY + "/" + LauncherProvider.TABLE_FAVORITES); + public static final Uri CONTENT_URI = Uri.parse("content://" + + ProviderConfig.AUTHORITY + "/" + TABLE_NAME); /** * The content:// style URL for a given row, identified by its id. @@ -136,21 +144,21 @@ public class LauncherSettings { * @return The unique content URL for the specified row. */ static Uri getContentUri(long id) { - return Uri.parse("content://" + LauncherProvider.AUTHORITY + - "/" + LauncherProvider.TABLE_FAVORITES + "/" + id); + return Uri.parse("content://" + ProviderConfig.AUTHORITY + + "/" + TABLE_NAME + "/" + id); } /** * The container holding the favorite * <P>Type: INTEGER</P> */ - static final String CONTAINER = "container"; + public static final String CONTAINER = "container"; /** * The icon is a resource identified by a package name and an integer id. */ - static final int CONTAINER_DESKTOP = -100; - static final int CONTAINER_HOTSEAT = -101; + public static final int CONTAINER_DESKTOP = -100; + public static final int CONTAINER_HOTSEAT = -101; static final String containerToString(int container) { switch (container) { @@ -164,7 +172,7 @@ public class LauncherSettings { * The screen holding the favorite (if container is CONTAINER_DESKTOP) * <P>Type: INTEGER</P> */ - static final String SCREEN = "screen"; + public static final String SCREEN = "screen"; /** * The X coordinate of the cell holding the favorite |