Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
11c568d6
Commit
11c568d6
authored
Aug 18, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
326e87ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
TalkingDataManager.kt
...in/java/com/mints/helivideo/manager/TalkingDataManager.kt
+16
-16
MyFragment.kt
...c/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
+7
-0
No files found.
video/app/src/main/java/com/mints/helivideo/manager/TalkingDataManager.kt
View file @
11c568d6
...
...
@@ -15,22 +15,22 @@ object TalkingDataManager {
fun
init
(
application
:
Application
)
{
try
{
//打开日志
TCAgent
.
LOG_ON
=
BuildConfig
.
LOG_DEBUG
/**
* 动态获取渠道ID(类似友盟)
* AppID说是xml文件里的密钥?
*/
TCAgent
.
init
(
application
,
APP_KEY
,
MateUtils
.
getAppMetaData
(
application
,
"CHANNEL_NAME"
))
/**
* true-开启自动捕获错误
*/
TCAgent
.
setReportUncaughtExceptions
(
true
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
//
try {
//
//打开日志
//
TCAgent.LOG_ON = BuildConfig.LOG_DEBUG
//
/**
//
* 动态获取渠道ID(类似友盟)
//
* AppID说是xml文件里的密钥?
//
*/
//
TCAgent.init(application, APP_KEY
//
, MateUtils.getAppMetaData(application, "CHANNEL_NAME"))
//
/**
//
* true-开启自动捕获错误
//
*/
//
TCAgent.setReportUncaughtExceptions(true)
//
} catch (e: Exception) {
//
e.printStackTrace()
//
}
}
fun
onResume
(
cxt
:
Context
,
name
:
String
){
...
...
video/app/src/main/java/com/mints/helivideo/ui/fragment/MyFragment.kt
View file @
11c568d6
...
...
@@ -49,6 +49,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
val
luckyIndexMap
:
MutableMap
<
Int
,
String
>
=
HashMap
()
private
var
yoyo
:
YoYo
.
YoYoString
?
=
null
private
var
isInitLuckyData
=
false
private
var
isTurnLuckyPage
=
false
private
var
nineShowBean
:
NineShowBean
?
=
null
var
carrierType
=
Constant
.
CARRIERTYPE_NINE
...
...
@@ -93,6 +94,11 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
showAd
()
}
if
(
isTurnLuckyPage
){
isTurnLuckyPage
=
false
clickTurn
()
}
if
(!
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
myPresenter
.
showTurn
()
myPresenter
.
getMyInfo
()
...
...
@@ -359,6 +365,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
val
luckyFirst
=
AppPreferencesManager
.
get
().
getBoolean
(
Constant
.
LUCKY_MY_FIRST
,
false
)
if
(!
luckyFirst
)
{
isTurnLuckyPage
=
true
AppPreferencesManager
.
get
().
put
(
Constant
.
LUCKY_MY_FIRST
,
true
)
val
bundle
=
Bundle
()
bundle
.
putInt
(
NineKnowActivity
.
COMPLETE
,
nineShowBean
!!
.
complete
)
...
...
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