diff options
author | Adam Cohen <adamcohen@google.com> | 2012-06-28 18:12:10 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-07-09 14:49:19 -0700 |
commit | 487f7dd3059621527eb439d7d51d34e00293f9b1 (patch) | |
tree | 45c9cd5f452e44eff7bb043318947ab3422012aa /src/com/android/launcher2/Launcher.java | |
parent | d51f33a6316c34fc69b8040946ed9a62519bb225 (diff) | |
download | packages_apps_trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.zip packages_apps_trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.tar.gz packages_apps_trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.tar.bz2 |
Trying to track down corrupt database / items disappearing
-> Adding logs for all database transactions
-> Adding sanity checks for items in folders, throwing exceptions
if they are violated
-> Reducing database upates when re-arranging items, only
update if values have changed
-> Removed some dead code from ItemInfo (isGesture?)
Change-Id: Ia5cd57d92082f633dbf4aa5d64612cbae2d82bb4
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 3e8c7aa..c3920ad 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3743,6 +3743,17 @@ public final class Launcher extends Activity writer.println(" " + sDumpLogs.get(i)); } } + + public static void dumpDebugLogsToConsole() { + Log.d(TAG, ""); + Log.d(TAG, "*********************"); + Log.d(TAG, "Launcher debug logs: "); + for (int i = 0; i < sDumpLogs.size(); i++) { + Log.d(TAG, " " + sDumpLogs.get(i)); + } + Log.d(TAG, "*********************"); + Log.d(TAG, ""); + } } interface LauncherTransitionable { |