This commit is contained in:
Horis 2024-12-06 15:07:52 +08:00
parent ad6e61de1e
commit 60b5a78857
3 changed files with 17 additions and 4 deletions

View File

@ -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())

View File

@ -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)

View 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>