feat: 优化代码

pull/159/head
kunfei 5 years ago
parent ba0937e243
commit 1523fd6487
  1. 2
      app/src/main/java/io/legado/app/utils/DocumentUtils.kt
  2. 22
      app/src/main/res/menu/main_bnv.xml

@ -98,7 +98,7 @@ object DocumentUtils {
DocumentsContract.Document.COLUMN_LAST_MODIFIED,
DocumentsContract.Document.COLUMN_SIZE,
DocumentsContract.Document.COLUMN_MIME_TYPE
), null, null, null
), null, null, DocumentsContract.Document.COLUMN_DISPLAY_NAME
)
c?.let {
val ici = c.getColumnIndex(DocumentsContract.Document.COLUMN_DOCUMENT_ID)

@ -4,20 +4,20 @@
tools:showIn="bottom_navigation_view">
<item
android:id="@+id/menu_bookshelf"
android:icon="@drawable/ic_bottom_books"
android:title="@string/bookshelf"/>
android:id="@+id/menu_bookshelf"
android:icon="@drawable/ic_bottom_books"
android:title="@string/bookshelf" />
<item
android:id="@+id/menu_find_book"
android:id="@+id/menu_find_book"
android:icon="@drawable/ic_bottom_explore"
android:title="@string/find"/>
android:title="@string/find" />
<item
android:id="@+id/menu_rss"
android:icon="@drawable/ic_bottom_rss_feed"
android:title="@string/rss" />
android:id="@+id/menu_rss"
android:icon="@drawable/ic_bottom_rss_feed"
android:title="@string/rss" />
<item
android:id="@+id/menu_my_config"
android:icon="@drawable/ic_bottom_person"
android:title="@string/my"/>
android:id="@+id/menu_my_config"
android:icon="@drawable/ic_bottom_person"
android:title="@string/my" />
</menu>

Loading…
Cancel
Save