diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-07-31 22:01:31 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-31 22:01:31 +0000 |
commit | 8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb (patch) | |
tree | 88deb0f7c266ebf25862ad9058e9c195b112e9f7 /src/com/android | |
parent | 519a40f731b747f1248a7443d4b5ab152572975a (diff) | |
parent | d934e0b0b7b60c9457fd0eb615355c16bac1a285 (diff) | |
download | android_packages_apps_Trebuchet-8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb.tar.gz android_packages_apps_Trebuchet-8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb.tar.bz2 android_packages_apps_Trebuchet-8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb.zip |
Merge "Enabling logging for migration task" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher3/LauncherModel.java | 5 | ||||
-rw-r--r-- | src/com/android/launcher3/model/MigrateFromRestoreTask.java | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index 7e75f9793..41f36eb04 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -27,7 +27,6 @@ import android.content.Context; import android.content.Intent; import android.content.Intent.ShortcutIconResource; import android.content.IntentFilter; -import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.pm.ProviderInfo; import android.content.pm.ResolveInfo; @@ -1761,6 +1760,8 @@ public class LauncherModel extends BroadcastReceiver if (MigrateFromRestoreTask.shouldRunTask(mContext)) { + long migrationStartTime = System.currentTimeMillis(); + Log.v(TAG, "Starting workspace migration after restore"); try { MigrateFromRestoreTask task = new MigrateFromRestoreTask(mContext); // Clear the flags before starting the task, so that we do not run the task @@ -1773,6 +1774,8 @@ public class LauncherModel extends BroadcastReceiver // Clear workspace. mFlags = mFlags | LOADER_FLAG_CLEAR_WORKSPACE; } + Log.v(TAG, "Workspace migration completed in " + + (System.currentTimeMillis() - migrationStartTime)); } if ((mFlags & LOADER_FLAG_CLEAR_WORKSPACE) != 0) { diff --git a/src/com/android/launcher3/model/MigrateFromRestoreTask.java b/src/com/android/launcher3/model/MigrateFromRestoreTask.java index cb90c8bc9..8d4472fd1 100644 --- a/src/com/android/launcher3/model/MigrateFromRestoreTask.java +++ b/src/com/android/launcher3/model/MigrateFromRestoreTask.java @@ -38,7 +38,7 @@ import java.util.HashSet; public class MigrateFromRestoreTask { private static final String TAG = "MigrateFromRestoreTask"; - private static final boolean DEBUG = false; + private static final boolean DEBUG = true; private static final String KEY_MIGRATION_SOURCE_SIZE = "migration_restore_src_size"; private static final String KEY_MIGRATION_WIDGET_MINSIZE = "migration_widget_min_size"; |