Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
894c8426
Commit
894c8426
authored
Nov 07, 2013
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ad view
parent
6c4d015a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
+1
-4
No files found.
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
View file @
894c8426
...
@@ -466,7 +466,7 @@ class Shadowsocks
...
@@ -466,7 +466,7 @@ class Shadowsocks
def
initAdView
()
{
def
initAdView
()
{
if
(
settings
.
getString
(
Key
.
proxy
,
""
)
==
"198.199.101.152"
)
{
if
(
settings
.
getString
(
Key
.
proxy
,
""
)
==
"198.199.101.152"
)
{
val
layoutView
=
drawer
.
getContentContainer
val
layoutView
=
drawer
.
getContentContainer
.
asInstanceOf
[
ViewGroup
].
getChildAt
(
0
)
if
(
layoutView
!=
null
)
{
if
(
layoutView
!=
null
)
{
val
adView
=
{
val
adView
=
{
if
(
isSinglePane
)
{
if
(
isSinglePane
)
{
...
@@ -475,9 +475,6 @@ class Shadowsocks
...
@@ -475,9 +475,6 @@ class Shadowsocks
new
AdView
(
this
,
AdSize
.
BANNER
,
"a151becb8068b09"
)
new
AdView
(
this
,
AdSize
.
BANNER
,
"a151becb8068b09"
)
}
}
}
}
val
params
=
new
FrameLayout
.
LayoutParams
(
LayoutParams
.
WRAP_CONTENT
,
LayoutParams
.
WRAP_CONTENT
)
params
.
gravity
=
Gravity
.
BOTTOM
adView
.
setLayoutParams
(
params
)
layoutView
.
asInstanceOf
[
ViewGroup
].
addView
(
adView
,
0
)
layoutView
.
asInstanceOf
[
ViewGroup
].
addView
(
adView
,
0
)
adView
.
loadAd
(
new
AdRequest
)
adView
.
loadAd
(
new
AdRequest
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment