Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
location share white
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
location share white
Commits
77ab198d
Commit
77ab198d
authored
Dec 12, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
68fa5605
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
AdsMgr.kt
app/src/main/java/com/base/locationsharewhite/ads/AdsMgr.kt
+1
-1
NotificationUiUtil.kt
...ava/com/base/locationsharewhite/fcm/NotificationUiUtil.kt
+3
-1
BaseActivity.kt
...n/java/com/base/locationsharewhite/helper/BaseActivity.kt
+4
-1
SplashActivity.kt
...a/com/base/locationsharewhite/ui/splash/SplashActivity.kt
+1
-0
DialogView.kt
...n/java/com/base/locationsharewhite/ui/views/DialogView.kt
+3
-0
No files found.
app/src/main/java/com/base/locationsharewhite/ads/AdsMgr.kt
View file @
77ab198d
...
...
@@ -101,7 +101,7 @@ object AdsMgr {
}
isAdmobInit
=
readyAdapter
!=
null
EventUtils
.
event
(
"AdmobInit"
,
"AdmobInit"
)
context
.
toast
(
"admob init"
)
//
context.toast("admob init")
if
(
adsConfigBean
.
adSwitch
)
{
admobInitCallBack
?.
invoke
()
...
...
app/src/main/java/com/base/locationsharewhite/fcm/NotificationUiUtil.kt
View file @
77ab198d
...
...
@@ -401,7 +401,9 @@ object NotificationUiUtil {
val
bigRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_style_2
)
val
smallRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_style_2
)
val
intent
=
Intent
(
context
,
MainActivity
::
class
.
java
)
val
intent
=
Intent
(
context
,
MainActivity
::
class
.
java
).
apply
{
putExtra
(
"where"
,
"sendAllAllowedNotification"
)
}
sendCustomNotification
(
context
,
intent
,
bigRemoteViews
,
smallRemoteViews
,
1999
)
}
...
...
app/src/main/java/com/base/locationsharewhite/helper/BaseActivity.kt
View file @
77ab198d
...
...
@@ -55,7 +55,9 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
fun
finishToMain
(
delay
:
Long
=
0
)
{
val
flag
=
this
!
is
MainActivity
&&
!
ActivityManagerUtils
.
getInstance
().
isActivityInStack
(
MainActivity
::
class
.
java
)
if
(
flag
)
{
startActivity
(
Intent
(
this
,
MainActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
MainActivity
::
class
.
java
).
apply
{
putExtra
(
"where"
,
"finishToMain"
)
})
}
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
delay
)
...
...
@@ -65,6 +67,7 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
fun
finishToMainTop
()
{
val
intent
=
Intent
(
this
,
MainActivity
::
class
.
java
)
intent
.
putExtra
(
"where"
,
"finishToMainTop"
)
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_REORDER_TO_FRONT
)
startActivity
(
intent
)
}
...
...
app/src/main/java/com/base/locationsharewhite/ui/splash/SplashActivity.kt
View file @
77ab198d
...
...
@@ -137,6 +137,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(), SplashView {
PopupConstObject
.
ACTION_STAY_HOME
->
{
startActivity
(
Intent
(
this
,
MainActivity
::
class
.
java
).
apply
{
putExtra
(
"actionId"
,
actionId
)
putExtra
(
"where"
,
"ACTION_STAY_HOME"
)
})
}
...
...
app/src/main/java/com/base/locationsharewhite/ui/views/DialogView.kt
View file @
77ab198d
...
...
@@ -11,6 +11,7 @@ import android.view.View
import
android.widget.FrameLayout
import
android.widget.LinearLayout
import
androidx.core.content.ContextCompat
import
com.base.locationsharewhite.BuildConfig
import
com.base.locationsharewhite.R
import
com.base.locationsharewhite.ads.AdsMgr
import
com.base.locationsharewhite.ads.AdsShowCallBack
...
...
@@ -20,6 +21,7 @@ import com.base.locationsharewhite.databinding.DialogViewerMoreBinding
import
com.base.locationsharewhite.ui.locationmap.LocationMapActivity
import
com.base.locationsharewhite.utils.LogEx
import
com.google.android.gms.maps.GoogleMap
import
kotlin.system.exitProcess
object
DialogView
{
...
...
@@ -93,6 +95,7 @@ object DialogView {
}
binding
.
tvQuit
.
setOnClickListener
{
dialog
.
dismiss
()
// if (BuildConfig.DEBUG) exitProcess(0) else finish()
finish
()
}
binding
.
ivClose
.
setOnClickListener
{
...
...
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