Skip to content

Commit

Permalink
Refine AdView
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Mar 18, 2016
1 parent 10940f2 commit 17e84e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/github/shadowsocks/Shadowsocks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class Shadowsocks
adView = new AdView(this)
adView.setAdUnitId("ca-app-pub-9097031975646651/7760346322")
adView.setAdSize(AdSize.SMART_BANNER)
preferences.getView.asInstanceOf[ViewGroup].addView(adView, 0)
preferences.getView.asInstanceOf[ViewGroup].addView(adView, 1)
adView.loadAd(new AdRequest.Builder().build())
} else adView.setVisibility(View.VISIBLE) else if (adView != null) adView.setVisibility(View.GONE)

Expand Down

0 comments on commit 17e84e5

Please sign in to comment.