diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2017-01-30 15:11:27 -0800 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2017-02-01 15:11:08 -0800 |
commit | 3c7d9cbb209107a8c8d41211beff7bf5af6fe285 (patch) | |
tree | 9f8252ae24c185d5f266894e793d900a77d77285 /src/com/android/launcher3/provider | |
parent | 1fafd719cb4c960448010e5fbdd8cc2634bd347d (diff) | |
download | android_packages_apps_Trebuchet-3c7d9cbb209107a8c8d41211beff7bf5af6fe285.tar.gz android_packages_apps_Trebuchet-3c7d9cbb209107a8c8d41211beff7bf5af6fe285.tar.bz2 android_packages_apps_Trebuchet-3c7d9cbb209107a8c8d41211beff7bf5af6fe285.zip |
Clean up around 1) Log.VERBOSE and 2) dump
b/31772480
Note: in the follow up CL, I will add the dump result of the bgDataModel
to a proto
Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
Diffstat (limited to 'src/com/android/launcher3/provider')
-rw-r--r-- | src/com/android/launcher3/provider/RestoreDbTask.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/launcher3/provider/RestoreDbTask.java b/src/com/android/launcher3/provider/RestoreDbTask.java index a200a8526..dc85abad7 100644 --- a/src/com/android/launcher3/provider/RestoreDbTask.java +++ b/src/com/android/launcher3/provider/RestoreDbTask.java @@ -27,6 +27,7 @@ import com.android.launcher3.LauncherSettings.Favorites; import com.android.launcher3.ShortcutInfo; import com.android.launcher3.Utilities; import com.android.launcher3.logging.FileLog; +import com.android.launcher3.util.LogConfig; import java.io.InvalidObjectException; @@ -44,13 +45,6 @@ public class RestoreDbTask { private static final String INFO_COLUMN_NAME = "name"; private static final String INFO_COLUMN_DEFAULT_VALUE = "dflt_value"; - /** - * When enabled all icons are kept on the home screen, even if they don't have an active - * session. To enable use: - * adb shell setprop log.tag.launcher_keep_all_icons VERBOSE - */ - private static final String KEEP_ALL_ICONS = "launcher_keep_all_icons"; - public static boolean performRestore(DatabaseHelper helper) { SQLiteDatabase db = helper.getWritableDatabase(); db.beginTransaction(); @@ -85,7 +79,7 @@ public class RestoreDbTask { } // Mark all items as restored. - boolean keepAllIcons = Utilities.isPropertyEnabled(KEEP_ALL_ICONS); + boolean keepAllIcons = Utilities.isPropertyEnabled(LogConfig.KEEP_ALL_ICONS); ContentValues values = new ContentValues(); values.put(Favorites.RESTORED, ShortcutInfo.FLAG_RESTORED_ICON | (keepAllIcons ? ShortcutInfo.FLAG_RESTORE_STARTED : 0)); |