You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Remove usage of BindingCollectionAdapter (part 2)
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
|
||||
<data>
|
||||
|
||||
<import type="java.util.Arrays"/>
|
||||
|
||||
<variable
|
||||
name="viewModel"
|
||||
type="com.topjohnwu.magisk.ui.surequest.SuRequestViewModel" />
|
||||
@@ -101,8 +99,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:enabled="@{viewModel.grantEnabled}"
|
||||
app:items="@{Arrays.asList(@stringArray/allow_timeout)}"
|
||||
app:itemBinding="@{viewModel.itemBinding}"
|
||||
app:items="@{@stringArray/allow_timeout}"
|
||||
app:layout="@{@layout/item_spinner}"
|
||||
android:selection="@={viewModel.selectedItemPosition}" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -1,25 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable name="item" type="String" />
|
||||
|
||||
</data>
|
||||
|
||||
<TextView
|
||||
style="?android:attr/spinnerItemStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:background="?colorSurfaceSurfaceVariant"
|
||||
android:textAppearance="@style/AppearanceFoundation.Caption"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"
|
||||
android:singleLine="true"
|
||||
android:text="@{item}"
|
||||
android:textAlignment="inherit"
|
||||
tools:text="Forever" />
|
||||
|
||||
</layout>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="?android:attr/spinnerItemStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:background="?colorSurfaceSurfaceVariant"
|
||||
android:textAppearance="@style/AppearanceFoundation.Caption"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="inherit"
|
||||
tools:text="Forever" />
|
||||
|
||||
Reference in New Issue
Block a user