From a694524047fda0a51dede4eefb1201a598d2d3a7 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 8 Jan 2014 14:04:34 -0800 Subject: [PATCH] Adding migration Clings. (Bug 11973614) - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c --- proguard.flags | 3 + res/layout-port/launcher.xml | 10 + res/layout-port/migration_cling.xml | 93 ++++ res/layout-port/migration_workspace_cling.xml | 70 +++ res/values/strings.xml | 8 + .../launcher3/AppsCustomizeTabHost.java | 2 +- src/com/android/launcher3/Cling.java | 79 +++- src/com/android/launcher3/DeviceProfile.java | 8 + src/com/android/launcher3/DragLayer.java | 3 +- src/com/android/launcher3/Folder.java | 4 +- src/com/android/launcher3/Launcher.java | 419 ++++------------- src/com/android/launcher3/LauncherClings.java | 444 ++++++++++++++++++ src/com/android/launcher3/LauncherModel.java | 13 +- src/com/android/launcher3/Workspace.java | 4 +- 14 files changed, 812 insertions(+), 348 deletions(-) create mode 100644 res/layout-port/migration_cling.xml create mode 100644 res/layout-port/migration_workspace_cling.xml create mode 100644 src/com/android/launcher3/LauncherClings.java diff --git a/proguard.flags b/proguard.flags index 9b59b217ec..a922e919d2 100644 --- a/proguard.flags +++ b/proguard.flags @@ -8,6 +8,9 @@ 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); + public void dismissMigrationWorkspaceCling(android.view.View); public void dismissWorkspaceCling(android.view.View); public void dismissAllAppsCling(android.view.View); } diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 2b3cf81a48..74005348cf 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -73,6 +73,16 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone" /> + + + + + + + + + + + + + + + + + +