Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Nov 7, 2019
1 parent 3416ac6 commit 142b246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ class ProfileManagerActivity : AppCompatActivity(), View.OnClickListener, Toolba
}
catch (e: Throwable)
{
menu.toggle(false)
if (::menu.isInitialized)
{
menu.toggle(false)
}
startActivity(Intent(this, ScannerActivity::class.java))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class ShadowsocksSettings : PreferenceFragment(), SharedPreferences.OnSharedPref
findPreference("about").setOnPreferenceClickListener {
ShadowsocksApplication.app.track(TAG, "about")
val web = WebView(activity)
web.isVerticalScrollBarEnabled = false
web.loadUrl("file:///android_asset/pages/about.html")
web.webViewClient = object : WebViewClient()
{
Expand Down

0 comments on commit 142b246

Please sign in to comment.