refine icon

This commit is contained in:
Max Lv
2013-11-03 08:49:23 +08:00
parent 4feaa859f7
commit f4c0ec31cb
7 changed files with 12 additions and 13 deletions
@@ -350,7 +350,7 @@ class ShadowVpnService extends VpnService {
.setSmallIcon(R.drawable.ic_stat_shadowsocks)
.setWhen(0)
.setTicker(title)
.setContentTitle(getString(R.string.screen_name))
.setContentTitle(getString(R.string.app_name))
.setContentText(info)
.setContentIntent(contentIntent)
.setAutoCancel(true)
@@ -514,11 +514,10 @@ class Shadowsocks
getSupportActionBar.setCustomView(switchLayout)
getSupportActionBar.setDisplayShowTitleEnabled(false)
getSupportActionBar.setDisplayShowCustomEnabled(true)
// getSupportActionBar.setDisplayShowHomeEnabled(false)
getSupportActionBar.setIcon(R.drawable.ic_stat_shadowsocks)
val title: TextView = switchLayout.findViewById(R.id.title).asInstanceOf[TextView]
val tf: Typeface = Typefaces.get(this, "fonts/Iceland.ttf")
if (tf != null) title.setTypeface(tf)
title.setText(R.string.app_name)
switchButton = switchLayout.findViewById(R.id.switchButton).asInstanceOf[Switch]
@@ -358,7 +358,7 @@ class ShadowsocksService extends Service {
builder
.setWhen(0)
.setTicker(title)
.setContentTitle(getString(R.string.screen_name))
.setContentTitle(getString(R.string.app_name))
.setContentText(info)
.setContentIntent(contentIntent)
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.stop),
@@ -376,7 +376,7 @@ class ShadowsocksService extends Service {
.setSmallIcon(R.drawable.ic_stat_shadowsocks)
.setWhen(0)
.setTicker(title)
.setContentTitle(getString(R.string.screen_name))
.setContentTitle(getString(R.string.app_name))
.setContentText(info)
.setContentIntent(contentIntent)
.setAutoCancel(true)