pull/931/head
gedoor 4 years ago
parent 53646fb119
commit 645333a12b
  1. 2
      app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt
  2. 38
      app/src/main/res/menu/book_source_debug.xml
  3. 19
      app/src/main/res/menu/source_debug.xml

@ -90,7 +90,7 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
}
override fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.source_debug, menu)
menuInflater.inflate(R.menu.book_source_debug, menu)
return super.onCompatCreateOptionsMenu(menu)
}

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<menu 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"
tools:ignore="AlwaysShowAction">
<item
android:id="@+id/menu_scan"
android:icon="@drawable/ic_scan"
android:title="@string/scan_qr_code"
app:showAsAction="always" />
<item
android:id="@+id/menu_search_src"
android:title="搜索源码"
app:showAsAction="never" />
<item
android:id="@+id/menu_book_src"
android:title="书籍源码"
app:showAsAction="never" />
<item
android:id="@+id/menu_toc_src"
android:title="目录源码"
app:showAsAction="never" />
<item
android:id="@+id/menu_content_src"
android:title="正文源码"
app:showAsAction="never" />
<item
android:id="@+id/menu_help"
android:title="@string/help"
app:showAsAction="never" />
</menu>

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu 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"
tools:ignore="AlwaysShowAction">
<item
android:id="@+id/menu_scan"
android:icon="@drawable/ic_scan"
android:title="@string/scan_qr_code"
app:showAsAction="always" />
<item
android:id="@+id/menu_help"
android:icon="@drawable/ic_help"
android:title="@string/help"
app:showAsAction="always" />
</menu>
Loading…
Cancel
Save