Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afb79fc9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make DebugView look more debuggy."

parents 2d25d8c6 41cf697d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@
        android:id="@+id/inspector_file_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="20dp"
        android:textSize="20sp"
        android:paddingTop="5dp"
        android:paddingBottom="5dp"
        android:paddingStart="16dp"
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
    android:paddingEnd="16dp"
    android:layout_gravity="center_vertical"
    android:fontFamily="sans-serif-medium"
    android:textSize="14sp"
    android:textSize="15sp"
    android:textAlignment="viewStart"
    android:textColor="@color/inspector_section_title">

+8 −0
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@
package com.android.documentsui.inspector;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.TextView;

import com.android.documentsui.R;
import com.android.documentsui.base.DocumentInfo;
@@ -64,4 +66,10 @@ public class DebugView extends TableView implements Consumer<DocumentInfo> {
    private void put(String key, Object value) {
        put(key, String.valueOf(value));
    }

    private void put(String key, boolean value) {
        KeyValueRow row = put(key, String.valueOf(value));
        TextView valueView = ((TextView) row.findViewById(R.id.table_row_value));
        valueView.setTextColor(value ? 0xFF006400 : 0xFF9A2020);
    }
}
Loading