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

Commit 39b8ead9 authored by Tony Huang's avatar Tony Huang
Browse files

Revert "Fix Bugreport disclaimer shouldn't move when switching between tile"

This reverts commit a2b84bbe.

Bug: 134308835
Test: build
Change-Id: Icbb0595516417730a27637202a41c028e12dcde2
parent d36c3ef5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -22,8 +22,6 @@
    android:layout_width="match_parent"
    android:layout_height="@dimen/doc_header_height"
    android:background="@drawable/sort_widget_background"
    android:paddingStart="20dp"
    android:paddingEnd="20dp"
    android:visibility="gone">

    <LinearLayout
+0 −64
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<com.google.android.material.card.MaterialCardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="4dp"
    android:elevation="0dp"
    android:duplicateParentState="true"
    app:cardElevation="0dp"
    app:strokeWidth="1dp"
    app:strokeColor="?android:strokeColor">

    <RelativeLayout
        android:animateLayoutChanges="true"
        android:id="@+id/message_container"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:minHeight="?android:attr/listPreferredItemHeightSmall">

        <ImageView
            android:contentDescription="@null"
            android:id="@+id/message_icon"
            android:layout_height="@dimen/icon_size"
            android:layout_width="@dimen/icon_size"
            android:layout_marginStart="0dp"
            android:layout_marginEnd="10dp"
            android:layout_marginTop="4dp"
            android:scaleType="centerInside"/>

        <TextView
            android:id="@+id/message_textview"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_toEndOf="@+id/message_icon"
            android:layout_marginStart="0dp"
            android:layout_marginEnd="8dp"
            android:layout_marginTop="12dp"
            android:selectAllOnFocus="true"/>

        <Button
            android:id="@+id/button_dismiss"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_alignEnd="@+id/message_textview"
            android:layout_below="@+id/message_textview"
            android:text="@android:string/ok"
            style="@style/DialogTextButton"/>
    </RelativeLayout>
</com.google.android.material.card.MaterialCardView>
+6 −5
Original line number Diff line number Diff line
@@ -36,12 +36,12 @@
        <FrameLayout
            android:id="@android:id/icon"
            android:pointerIcon="hand"
            android:layout_width="56dp"
            android:layout_width="@dimen/list_item_width"
            android:layout_height="@dimen/list_item_height"
            android:paddingBottom="@dimen/list_item_icon_padding"
            android:paddingTop="@dimen/list_item_icon_padding"
            android:paddingEnd="16dp"
            android:paddingStart="0dp" >
            android:paddingStart="@dimen/list_item_padding" >

            <ImageView
                android:id="@+id/icon_mime"
@@ -53,8 +53,8 @@

            <ImageView
                android:id="@+id/icon_thumb"
                android:layout_width="@dimen/list_icon_thumb_size"
                android:layout_height="@dimen/list_icon_thumb_size"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:contentDescription="@null"
                android:scaleType="centerCrop" />

@@ -74,7 +74,8 @@
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical"
            android:layout_gravity="center_vertical">
            android:layout_gravity="center_vertical"
            android:layout_marginEnd="@dimen/list_item_padding" >

            <TextView
                android:id="@android:id/title"
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,8 @@
    <!-- Material design rounded radius -->
    <dimen name="material_round_radius">2dp</dimen>

    <dimen name="container_padding">20dp</dimen>
    <dimen name="grid_container_padding">20dp</dimen>
    <dimen name="list_container_padding">0dp</dimen>
    <dimen name="icon_size">40dp</dimen>
    <dimen name="button_touch_size">48dp</dimen>
    <dimen name="root_icon_size">24dp</dimen>
@@ -38,7 +39,6 @@
    <dimen name="grid_item_margin">6dp</dimen>
    <dimen name="grid_padding_horiz">4dp</dimen>
    <dimen name="grid_padding_vert">4dp</dimen>
    <dimen name="list_icon_thumb_size">40dp</dimen>
    <dimen name="list_item_width">72dp</dimen>
    <dimen name="list_item_height">72dp</dimen>
    <dimen name="list_item_padding">16dp</dimen>
+13 −2
Original line number Diff line number Diff line
@@ -539,10 +539,10 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On
            mLayout.setSpanCount(mColumnCount);
        }

        final int innerPadding = getResources().getDimensionPixelSize(R.dimen.container_padding);
        int pad = getDirectoryPadding(mode);
        mAppBarHeight = getAppBarLayoutHeight();
        mSaveLayoutHeight = getSaveLayoutHeight();
        mRecView.setPadding(innerPadding, mAppBarHeight, innerPadding, mSaveLayoutHeight);
        mRecView.setPadding(pad, mAppBarHeight, pad, mSaveLayoutHeight);
        mRecView.requestLayout();
        mIconHelper.setViewMode(mode);

@@ -637,6 +637,17 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On
        return (int) (getResources().getDimensionPixelSize(id) * mLiveScale);
    }

    private int getDirectoryPadding(@ViewMode int mode) {
        switch (mode) {
            case MODE_GRID:
                return getResources().getDimensionPixelSize(R.dimen.grid_container_padding);
            case MODE_LIST:
                return getResources().getDimensionPixelSize(R.dimen.list_container_padding);
            default:
                throw new IllegalArgumentException("Unsupported layout mode: " + mode);
        }
    }

    private boolean handleMenuItemClick(MenuItem item) {
        if (mInjector.pickResult != null) {
            mInjector.pickResult.increaseActionCount();