Horis hai 1 ano
pai
achega
8ca7c54f06

+ 0 - 4
app/src/main/java/io/legado/app/ui/widget/NoChildScrollNestedScrollView.kt

@@ -11,10 +11,6 @@ class NoChildScrollNestedScrollView @JvmOverloads constructor(
     attrs: AttributeSet? = null,
     attrs: AttributeSet? = null,
 ) : NestedScrollView(context, attrs) {
 ) : NestedScrollView(context, attrs) {
 
 
-    override fun requestChildFocus(child: View?, focused: View?) {
-        // do nothing
-    }
-
     override fun requestChildRectangleOnScreen(
     override fun requestChildRectangleOnScreen(
         child: View,
         child: View,
         rectangle: Rect?,
         rectangle: Rect?,

+ 0 - 9
app/src/main/java/io/legado/app/ui/widget/recycler/NoChildScrollLinearLayoutManager.kt

@@ -8,15 +8,6 @@ import androidx.recyclerview.widget.RecyclerView
 
 
 class NoChildScrollLinearLayoutManager(context: Context) : LinearLayoutManager(context) {
 class NoChildScrollLinearLayoutManager(context: Context) : LinearLayoutManager(context) {
 
 
-    override fun onRequestChildFocus(
-        parent: RecyclerView,
-        state: RecyclerView.State,
-        child: View,
-        focused: View?
-    ): Boolean {
-        return true
-    }
-
     override fun requestChildRectangleOnScreen(
     override fun requestChildRectangleOnScreen(
         parent: RecyclerView,
         parent: RecyclerView,
         child: View,
         child: View,

+ 2 - 2
app/src/main/res/layout/activity_book_info_edit.xml

@@ -61,7 +61,7 @@
         </LinearLayout>
         </LinearLayout>
     </LinearLayout>
     </LinearLayout>
 
 
-    <ScrollView
+    <io.legado.app.ui.widget.NoChildScrollNestedScrollView
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
         android:layout_height="wrap_content">
 
 
@@ -154,6 +154,6 @@
             </io.legado.app.ui.widget.text.TextInputLayout>
             </io.legado.app.ui.widget.text.TextInputLayout>
 
 
         </LinearLayout>
         </LinearLayout>
-    </ScrollView>
+    </io.legado.app.ui.widget.NoChildScrollNestedScrollView>
 
 
 </LinearLayout>
 </LinearLayout>