mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 16:52:17 +08:00
Fix: disable search on loading apps
This commit is contained in:
parent
4b8fc6ae9a
commit
329a21848f
|
@ -45,6 +45,8 @@ class AccessControlDesign(
|
||||||
|
|
||||||
suspend fun patchApps(apps: List<AppInfo>) {
|
suspend fun patchApps(apps: List<AppInfo>) {
|
||||||
adapter.swapDataSet(adapter::apps, apps, false)
|
adapter.swapDataSet(adapter::apps, apps, false)
|
||||||
|
|
||||||
|
binding.searchView.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun rebindAll() {
|
suspend fun rebindAll() {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
<data>
|
<data>
|
||||||
<variable
|
<variable
|
||||||
name="self"
|
name="self"
|
||||||
|
@ -49,7 +50,9 @@
|
||||||
android:contentDescription="@string/search"
|
android:contentDescription="@string/search"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:padding="@dimen/toolbar_image_action_padding"
|
android:padding="@dimen/toolbar_image_action_padding"
|
||||||
android:src="@drawable/ic_baseline_search" />
|
android:src="@drawable/ic_baseline_search"
|
||||||
|
android:visibility="invisible"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/menu_view"
|
android:id="@+id/menu_view"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user