summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-07-31 12:40:57 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-07-31 13:03:11 -0700
commitd934e0b0b7b60c9457fd0eb615355c16bac1a285 (patch)
treec977529dd2ebee3560acfef4fcbbe517ca542a7f /src/com/android/launcher3/LauncherModel.java
parente5bb705fb79f18df8680958dcf2c5460e16c90b6 (diff)
downloadandroid_packages_apps_Trebuchet-d934e0b0b7b60c9457fd0eb615355c16bac1a285.tar.gz
android_packages_apps_Trebuchet-d934e0b0b7b60c9457fd0eb615355c16bac1a285.tar.bz2
android_packages_apps_Trebuchet-d934e0b0b7b60c9457fd0eb615355c16bac1a285.zip
Enabling logging for migration task
Bug: 22353460 Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
Diffstat (limited to 'src/com/android/launcher3/LauncherModel.java')
-rw-r--r--src/com/android/launcher3/LauncherModel.java5
1 files changed, 4 insertions, 1 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) {