Commit 048219a7 authored by Mygod's avatar Mygod

Remove screen_name resource

parent b4d3103b
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<resources> <resources>
<string name="app_name">Shadowsocks</string> <string name="app_name">Shadowsocks</string>
<string name="screen_name" translatable="false">shadowsocks</string>
<!-- global/misc category --> <!-- global/misc category -->
<string name="misc_cat">Misc</string> <string name="misc_cat">Misc</string>
......
...@@ -357,7 +357,7 @@ class Shadowsocks extends AppCompatActivity with ServiceBoundContext { ...@@ -357,7 +357,7 @@ class Shadowsocks extends AppCompatActivity with ServiceBoundContext {
setContentView(R.layout.layout_main) setContentView(R.layout.layout_main)
// Initialize Toolbar // Initialize Toolbar
val toolbar = findViewById(R.id.toolbar).asInstanceOf[Toolbar] val toolbar = findViewById(R.id.toolbar).asInstanceOf[Toolbar]
toolbar.setTitle(getString(R.string.screen_name)) toolbar.setTitle("shadowsocks") // non-translatable logo
toolbar.setTitleTextAppearance(toolbar.getContext, R.style.Toolbar_Logo) toolbar.setTitleTextAppearance(toolbar.getContext, R.style.Toolbar_Logo)
val field = classOf[Toolbar].getDeclaredField("mTitleTextView") val field = classOf[Toolbar].getDeclaredField("mTitleTextView")
field.setAccessible(true) field.setAccessible(true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment