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

Commit 1b6685f4 authored by Doris Ling's avatar Doris Ling
Browse files

Add background color to suggestion/condition view.

- also remove "new_ui" from the condition tile and suggestion tile
layout file name.

Change-Id: I2a1fe4ea2ed69768f6e7c464608039c9c962c9f1
Fix: 63674319
Test: visual
parent 8e1f509b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
            android:id="@+id/data"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/material_grey_300"
            android:scrollbars="none"/>

    </android.support.v7.widget.CardView>
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class ConditionAdapter extends RecyclerView.Adapter<DashboardItemHolder>

        @Override
        public int getSwipeDirs(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
            return viewHolder.getItemViewType() == R.layout.condition_tile_new_ui
            return viewHolder.getItemViewType() == R.layout.condition_tile
                    ? super.getSwipeDirs(recyclerView, viewHolder) : 0;
        }

@@ -121,7 +121,7 @@ public class ConditionAdapter extends RecyclerView.Adapter<DashboardItemHolder>

    @Override
    public int getItemViewType(int position) {
        return R.layout.condition_tile_new_ui;
        return R.layout.condition_tile;
    }

    @Override
Loading