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

Commit f1cf1011 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Show briefcase icon on work files when cross profile is supported."...

Merge "Show briefcase icon on work files when cross profile is supported." into rvc-dev am: 538ace73 am: 384740ff

Change-Id: I527e5ce2f01504493fc80a59a9edab3887f9b9d7
parents c65117d6 384740ff
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2020 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.
  -->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:fillColor="@color/briefcase_icon_color"
      android:pathData="M20,6h-4L16,4c0,-1.11 -0.89,-2 -2,-2h-4c-1.11,0 -2,0.89 -2,2v2L4,6c-1.11,0 -1.99,0.89 -1.99,2L2,19c0,1.11 0.89,2 2,2h16c1.11,0 2,-0.89 2,-2L22,8c0,-1.11 -0.89,-2 -2,-2zM12,15c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM14,6h-4L10,4h4v2z"/>
</vector>
+25 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2020 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.
  -->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M20,6h-4L16,4c0,-1.11 -0.89,-2 -2,-2h-4c-1.11,0 -2,0.89 -2,2v2L4,6c-1.11,0 -1.99,0.89 -1.99,2L2,19c0,1.11 0.89,2 2,2h16c1.11,0 2,-0.89 2,-2L22,8c0,-1.11 -0.89,-2 -2,-2zM12,15c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM14,6h-4L10,4h4v2z"/>
</vector>
+23 −8
Original line number Diff line number Diff line
@@ -76,17 +76,32 @@
            android:layout_weight="1"
            android:orientation="horizontal" >

            <TextView
                android:id="@android:id/title"
            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_weight="0.4"
                android:layout_marginEnd="12dp"
                android:orientation="horizontal">

                <ImageView
                    android:id="@+id/icon_briefcase"
                    android:layout_height="@dimen/briefcase_icon_size"
                    android:layout_width="@dimen/briefcase_icon_size"
                    android:layout_marginEnd="@dimen/briefcase_icon_margin"
                    android:layout_gravity="center_vertical"
                    android:src="@drawable/ic_briefcase"
                    android:contentDescription="@null"/>

                <TextView
                    android:id="@android:id/title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="middle"
                    android:singleLine="true"
                    android:textAlignment="viewStart"
                    android:textAppearance="@android:style/TextAppearance.Material.Subhead"
                    android:textColor="?android:attr/textColorPrimary"/>
            </LinearLayout>

            <TextView
                android:id="@+id/file_type"
+8 −0
Original line number Diff line number Diff line
@@ -78,6 +78,14 @@

            </FrameLayout>

            <ImageView
                android:id="@+id/icon_briefcase"
                android:layout_height="@dimen/briefcase_icon_size"
                android:layout_width="@dimen/briefcase_icon_size"
                android:layout_marginEnd="@dimen/briefcase_icon_margin"
                android:src="@drawable/ic_briefcase"
                android:contentDescription="@null"/>

            <TextView
                android:id="@android:id/title"
                android:layout_width="wrap_content"
+12 −1
Original line number Diff line number Diff line
@@ -142,12 +142,23 @@
                    android:paddingTop="8dp"
                    android:paddingEnd="12dp">

                    <ImageView
                        android:id="@+id/icon_briefcase"
                        android:layout_height="@dimen/briefcase_icon_size"
                        android:layout_width="@dimen/briefcase_icon_size"
                        android:layout_marginEnd="@dimen/briefcase_icon_margin"
                        android:layout_alignTop="@android:id/title"
                        android:layout_alignBottom="@android:id/title"
                        android:gravity="center_vertical"
                        android:src="@drawable/ic_briefcase"
                        android:contentDescription="@null"/>

                    <TextView
                        android:id="@android:id/title"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentTop="true"
                        android:layout_alignParentStart="true"
                        android:layout_toEndOf="@+id/icon_briefcase"
                        android:singleLine="true"
                        android:ellipsize="end"
                        android:textAlignment="viewStart"
Loading