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

Commit ef0513fe authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Fix corrupted views in favorite tabs

I12820f1e0673aaf81044fc8cb6adedc0a8a64dd6 suppresses every
re-layout including ones from TextView, which makes the tile look
weird sometimes.

Instead of suppressing all those events, let's suppress only events
coming from ImageViews.

Bug: 5270040
Change-Id: Ia042ba0d548ca4b62a349508eaa8754bbd92dff2
parent 7a330308
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -26,6 +26,10 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <view
            class="com.android.contacts.list.ContactTileImageContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <QuickContactBadge
                android:id="@+id/contact_tile_quick"
                android:layout_width="64dip"
@@ -33,6 +37,7 @@
                android:scaleType="centerCrop"
                android:focusable="true"
                android:layout_alignParentRight="true" />
        </view>

        <LinearLayout
            android:layout_width="match_parent"
+13 −8
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <view
            class="com.android.contacts.list.ContactTileImageContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <QuickContactBadge
                android:id="@id/contact_tile_quick"
                android:nextFocusRight="@id/contact_tile_frequent_phone"
@@ -35,6 +39,7 @@
                android:scaleType="centerCrop"
                android:focusable="true"
                android:layout_alignParentLeft="true" />
        </view>

        <TextView
            android:id="@+id/contact_tile_name"
+9 −4
Original line number Diff line number Diff line
@@ -25,11 +25,16 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <view
            class="com.android.contacts.list.ContactTileImageContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                 android:id="@+id/contact_tile_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="centerCrop" />
        </view>

        <LinearLayout
            android:layout_width="match_parent"
+9 −4
Original line number Diff line number Diff line
@@ -24,11 +24,16 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <view
            class="com.android.contacts.list.ContactTileImageContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:id="@+id/contact_tile_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="centerCrop" />
        </view>

        <LinearLayout
            android:layout_width="match_parent"
+9 −4
Original line number Diff line number Diff line
@@ -24,11 +24,16 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <view
            class="com.android.contacts.list.ContactTileImageContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:id="@+id/contact_tile_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:scaleType="centerCrop" />
        </view>

        <TextView
            android:id="@+id/contact_tile_name"
Loading