mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
ad6e61de1e
commit
60b5a78857
@ -30,8 +30,6 @@ import org.mozilla.javascript.NativeObject
|
||||
import java.net.URL
|
||||
import java.util.Locale
|
||||
import java.util.regex.Pattern
|
||||
import kotlin.collections.component1
|
||||
import kotlin.collections.component2
|
||||
import kotlin.coroutines.ContinuationInterceptor
|
||||
import kotlin.coroutines.CoroutineContext
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
@ -653,7 +651,7 @@ class AnalyzeRule(
|
||||
jsEval is String -> infoVal.insert(0, jsEval)
|
||||
jsEval is Double && jsEval % 1.0 == 0.0 -> infoVal.insert(
|
||||
0,
|
||||
String.format(Locale.getDefault(), "%.0f", jsEval)
|
||||
String.format(Locale.ROOT, "%.0f", jsEval)
|
||||
)
|
||||
|
||||
else -> infoVal.insert(0, jsEval.toString())
|
||||
|
@ -46,7 +46,7 @@ class RssFavoritesActivity : BaseActivity<ActivityRssFavoritesBinding>() {
|
||||
}
|
||||
|
||||
override fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.main_explore, menu)
|
||||
menuInflater.inflate(R.menu.rss_favorites, menu)
|
||||
groupsMenu = menu.findItem(R.id.menu_group)?.subMenu
|
||||
upGroupsMenu()
|
||||
return super.onCompatCreateOptionsMenu(menu)
|
||||
|
15
app/src/main/res/menu/rss_favorites.xml
Normal file
15
app/src/main/res/menu/rss_favorites.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?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">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_group"
|
||||
android:title="@string/group"
|
||||
android:icon="@drawable/ic_groups"
|
||||
app:showAsAction="always">
|
||||
|
||||
<menu />
|
||||
|
||||
</item>
|
||||
|
||||
</menu>
|
Loading…
Reference in New Issue
Block a user