mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Adds dump method to ModelDelegate.
This allows delegates to include additional data in log dumps. Bug: 181351828 Test: Checked that data was found in a bug report and adb shell dumpsys activity com.google.android.apps.nexuslauncher Change-Id: I7a63430202ff899ac885a544c558e1248d2ce829
This commit is contained in:
@@ -615,7 +615,9 @@ public class LauncherModel extends LauncherApps.Callback implements InstallSessi
|
||||
+ "\" bitmapIcon=" + info.bitmap.icon
|
||||
+ " componentName=" + info.componentName.getPackageName());
|
||||
}
|
||||
writer.println();
|
||||
}
|
||||
mModelDelegate.dump(prefix, fd, writer, args);
|
||||
mBgDataModel.dump(prefix, fd, writer, args);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ import com.android.launcher3.R;
|
||||
import com.android.launcher3.shortcuts.ShortcutKey;
|
||||
import com.android.launcher3.util.ResourceBasedOverride;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -89,4 +91,11 @@ public class ModelDelegate implements ResourceBasedOverride {
|
||||
@WorkerThread
|
||||
public void destroy() { }
|
||||
|
||||
/**
|
||||
* Add data to a dumpsys request for Launcher (e.g. for bug reports).
|
||||
*
|
||||
* @see com.android.launcher3.Launcher#dump(java.lang.String, java.io.FileDescriptor,
|
||||
* java.io.PrintWriter, java.lang.String[])
|
||||
**/
|
||||
public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user