summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseActivity.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-05-15 14:53:30 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-05-16 10:55:21 -0700
commit55eb556a4b9b028a6a0cbe28400ae0582eb4ae04 (patch)
treee7a79a35e1586ed6f0dde0f65cb720b54e77e50c /src/com/android/launcher3/BaseActivity.java
parentd9a1337b40fcb1041bba48cd59d7f358f5b7895f (diff)
downloadandroid_packages_apps_Trebuchet-55eb556a4b9b028a6a0cbe28400ae0582eb4ae04.tar.gz
android_packages_apps_Trebuchet-55eb556a4b9b028a6a0cbe28400ae0582eb4ae04.tar.bz2
android_packages_apps_Trebuchet-55eb556a4b9b028a6a0cbe28400ae0582eb4ae04.zip
Dumping the excoded view hierarchy instead of the default activity dump
> Encoded hierarchy is smaller is size and has a lot more information about the views Bug: 79861035 Change-Id: I84316b1b0031282b0579f3aaac22d8d8f00d8bcb
Diffstat (limited to 'src/com/android/launcher3/BaseActivity.java')
-rw-r--r--src/com/android/launcher3/BaseActivity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java
index 3e4589d1f..421966755 100644
--- a/src/com/android/launcher3/BaseActivity.java
+++ b/src/com/android/launcher3/BaseActivity.java
@@ -30,8 +30,10 @@ import android.view.View.AccessibilityDelegate;
import com.android.launcher3.DeviceProfile.OnDeviceProfileChangeListener;
import com.android.launcher3.logging.UserEventDispatcher;
+import com.android.launcher3.uioverrides.UiFactory;
import com.android.launcher3.util.SystemUiController;
+import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.annotation.Retention;
import java.util.ArrayList;
@@ -224,6 +226,13 @@ public abstract class BaseActivity extends Activity {
void onMultiWindowModeChanged(boolean isInMultiWindowMode);
}
+ @Override
+ public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
+ if (!UiFactory.dumpActivity(this, writer)) {
+ super.dump(prefix, fd, writer, args);
+ }
+ }
+
protected void dumpMisc(PrintWriter writer) {
writer.println(" deviceProfile isTransposed=" + getDeviceProfile().isVerticalBarLayout());
writer.println(" orientation=" + getResources().getConfiguration().orientation);