Fix: disable search on loading apps

This commit is contained in:
Kr328 2022-02-21 20:29:46 +08:00
parent 4b8fc6ae9a
commit 329a21848f
2 changed files with 7 additions and 2 deletions

View File

@ -45,6 +45,8 @@ class AccessControlDesign(
suspend fun patchApps(apps: List<AppInfo>) {
adapter.swapDataSet(adapter::apps, apps, false)
binding.searchView.visibility = View.VISIBLE
}
suspend fun rebindAll() {

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<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>
<variable
name="self"
@ -49,7 +50,9 @@
android:contentDescription="@string/search"
android:focusable="true"
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
android:id="@+id/menu_view"