provide unique id names to the frame layouts

since it was causing a crash with the views staying in memory
This commit is contained in:
Jays2Kings 2023-10-18 18:49:02 -07:00
parent 7b9985419c
commit afa4c20cb6
5 changed files with 7 additions and 8 deletions

View file

@ -260,7 +260,7 @@ class RecentsController(bundle: Bundle? = null) :
if (presenter.recentItems.isNotEmpty()) {
adapter.updateDataSet(presenter.recentItems)
} else {
binding.frameLayout.alpha = 0f
binding.recentsFrameLayout.alpha = 0f
}
binding.downloadBottomSheet.dlBottomSheet.onCreate(this)
@ -573,7 +573,7 @@ class RecentsController(bundle: Bundle? = null) :
(activity as? MainActivity)?.showNotificationPermissionPrompt()
}
binding.progress.isVisible = false
binding.frameLayout.alpha = 1f
binding.recentsFrameLayout.alpha = 1f
binding.swipeRefresh.isRefreshing = LibraryUpdateJob.isRunning(view!!.context)
adapter.removeAllScrollableHeaders()
adapter.updateDataSet(recents)

View file

@ -3,11 +3,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/browse_layout"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:id="@+id/browse_layout">
<FrameLayout
android:id="@+id/frame_layout"
android:id="@+id/browse_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background">

View file

@ -2,7 +2,7 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/frame_layout"
android:id="@+id/manga_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background">

View file

@ -18,7 +18,7 @@
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/frame_layout"
android:id="@+id/recents_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background">

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frame_layout"
android:id="@+id/sub_debug_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">