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_LAST_MODIFIED,
DocumentsContract.Document.COLUMN_SIZE, DocumentsContract.Document.COLUMN_SIZE,
DocumentsContract.Document.COLUMN_MIME_TYPE DocumentsContract.Document.COLUMN_MIME_TYPE
), null, null, null ), null, null, DocumentsContract.Document.COLUMN_DISPLAY_NAME
) )
c?.let { c?.let {
val ici = c.getColumnIndex(DocumentsContract.Document.COLUMN_DOCUMENT_ID) val ici = c.getColumnIndex(DocumentsContract.Document.COLUMN_DOCUMENT_ID)

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

Loading…
Cancel
Save