优化
This commit is contained in:
@@ -206,6 +206,9 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
autoPageStop()
|
autoPageStop()
|
||||||
return@addCallback
|
return@addCallback
|
||||||
}
|
}
|
||||||
|
if (getPrefBoolean("disableReturnKey") && !menuLayoutIsVisible) {
|
||||||
|
return@addCallback
|
||||||
|
}
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,6 +149,13 @@
|
|||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:isBottomBackground="true" />
|
app:isBottomBackground="true" />
|
||||||
|
|
||||||
|
<io.legado.app.lib.prefs.SwitchPreference
|
||||||
|
android:defaultValue="false"
|
||||||
|
android:key="disableReturnKey"
|
||||||
|
android:title="@string/disable_return_key"
|
||||||
|
app:iconSpaceReserved="false"
|
||||||
|
app:isBottomBackground="true" />
|
||||||
|
|
||||||
<io.legado.app.lib.prefs.Preference
|
<io.legado.app.lib.prefs.Preference
|
||||||
android:key="customPageKey"
|
android:key="customPageKey"
|
||||||
android:title="@string/custom_page_key"
|
android:title="@string/custom_page_key"
|
||||||
@@ -165,10 +172,10 @@
|
|||||||
<io.legado.app.lib.prefs.SwitchPreference
|
<io.legado.app.lib.prefs.SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
android:key="showReadTitleAddition"
|
android:key="showReadTitleAddition"
|
||||||
android:title="@string/show_read_title_addition"/>
|
android:title="@string/show_read_title_addition" />
|
||||||
|
|
||||||
<io.legado.app.lib.prefs.SwitchPreference
|
<io.legado.app.lib.prefs.SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="readBarStyleFollowPage"
|
android:key="readBarStyleFollowPage"
|
||||||
android:title="@string/read_bar_style_follow_page"/>
|
android:title="@string/read_bar_style_follow_page" />
|
||||||
</androidx.preference.PreferenceScreen>
|
</androidx.preference.PreferenceScreen>
|
||||||
Reference in New Issue
Block a user