Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Dec 6, 2024
1 parent ad6e61d commit 60b5a78
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/menu/rss_favorites.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 60b5a78

Please sign in to comment.