Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
8f367830
Commit
8f367830
authored
Dec 28, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
parent
33ac2ce8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
49 deletions
+7
-49
YlhPreLoadExpressManager.kt
...om/mints/goodmoney/ad/express/YlhPreLoadExpressManager.kt
+6
-0
TTNativeExpressManager.java
...a/com/mints/goodmoney/manager/TTNativeExpressManager.java
+1
-1
TToast.java
...y/app/src/main/java/com/mints/goodmoney/utils/TToast.java
+0
-48
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/express/YlhPreLoadExpressManager.kt
View file @
8f367830
package
com.mints.goodmoney.ad.express
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.manager.YlhAdManager
import
com.mints.goodmoney.utils.LogUtil
import
com.qq.e.ads.nativ.ADSize
import
com.qq.e.ads.nativ.NativeExpressAD
import
com.qq.e.ads.nativ.NativeExpressADView
...
...
@@ -31,6 +33,10 @@ object YlhPreLoadExpressManager {
nativeExpressAD
=
NativeExpressAD
(
MintsApplication
.
getContext
(),
ADSize
(
ADSize
.
FULL_WIDTH
,
ADSize
.
AUTO_HEIGHT
),
YlhAdManager
.
YLH_AD_NATIVEEXPRESS_AWARD
,
object
:
NativeExpressAD
.
NativeExpressADListener
{
override
fun
onNoAD
(
p0
:
AdError
?)
{
if
(
BuildConfig
.
DEBUG
)
{
LogUtil
.
d
(
"通用奖励 ylh:TTNativeExpressManager"
,
"onError ${p0?.errorCode} ${p0?.errorMsg}"
)
}
}
override
fun
onADClicked
(
p0
:
NativeExpressADView
?)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TTNativeExpressManager.java
View file @
8f367830
...
...
@@ -85,7 +85,7 @@ public class TTNativeExpressManager {
@Override
public
void
onError
(
int
code
,
String
message
)
{
LogUtil
.
d
(
"通用TTNativeExpressManager"
,
"onError "
+
code
+
message
);
LogUtil
.
d
(
"通用
奖励 csj:
TTNativeExpressManager"
,
"onError "
+
code
+
message
);
if
(
view
!=
null
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/TToast.java
deleted
100644 → 0
View file @
33ac2ce8
package
com
.
mints
.
goodmoney
.
utils
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.util.Log
;
import
android.widget.Toast
;
/**
* Create by hanweiwei on 11/07/2018
*/
public
final
class
TToast
{
private
static
Toast
sToast
;
public
static
void
show
(
Context
context
,
String
msg
)
{
show
(
context
,
msg
,
Toast
.
LENGTH_SHORT
);
}
public
static
void
show
(
Context
context
,
String
msg
,
int
duration
)
{
Toast
toast
=
getToast
(
context
);
if
(
toast
!=
null
)
{
toast
.
setDuration
(
duration
);
toast
.
setText
(
String
.
valueOf
(
msg
));
toast
.
show
();
}
else
{
Log
.
i
(
"TToast"
,
"toast msg: "
+
String
.
valueOf
(
msg
));
}
}
@SuppressLint
(
"ShowToast"
)
private
static
Toast
getToast
(
Context
context
)
{
if
(
context
==
null
)
{
return
sToast
;
}
// if (sToast == null) {
// synchronized (TToast.class) {
// if (sToast == null) {
sToast
=
Toast
.
makeText
(
context
.
getApplicationContext
(),
""
,
Toast
.
LENGTH_SHORT
);
// }
// }
// }
return
sToast
;
}
public
static
void
reset
()
{
sToast
=
null
;
}
}
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