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
6578e535
Commit
6578e535
authored
Dec 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
b4fdaf26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
BaseActivity.kt
...n/java/com/base/locationsharewhite/helper/BaseActivity.kt
+4
-3
HowUseActivity.kt
...a/com/base/locationsharewhite/ui/howuse/HowUseActivity.kt
+5
-5
LocationPermissionDialog.kt
...e/locationsharewhite/ui/views/LocationPermissionDialog.kt
+0
-1
No files found.
app/src/main/java/com/base/locationsharewhite/helper/BaseActivity.kt
View file @
6578e535
...
...
@@ -75,7 +75,7 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
}
fun
changeLanguage
(
currentActivity
:
Activity
):
Boolean
{
fun
changeLanguage
(
currentActivity
:
Activity
,
bundle
:
Bundle
=
Bundle
()
):
Boolean
{
val
spLanguage
=
Locale
(
appLanguageSp
,
appLanguageCountrySp
)
val
flag
=
currentLocale
!=
spLanguage
val
restart
=
MultiLanguages
.
setAppLanguage
(
this
,
spLanguage
)
...
...
@@ -104,14 +104,15 @@ abstract class BaseActivity<T : ViewBinding> : AppCompatActivity() {
LogEx
.
logDebug
(
TAG
,
"changeLanguage recreate"
)
recreate
()
}
else
{
startActivity
(
Intent
(
this
,
currentActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
currentActivity
::
class
.
java
).
apply
{
putExtras
(
bundle
)
})
overridePendingTransition
(
R
.
anim
.
activity_alpha_in
,
R
.
anim
.
activity_alpha_out
)
finish
()
}
return
true
}
return
false
}
/**
...
...
app/src/main/java/com/base/locationsharewhite/ui/howuse/HowUseActivity.kt
View file @
6578e535
...
...
@@ -2,6 +2,7 @@ package com.base.locationsharewhite.ui.howuse
import
android.content.Intent
import
android.graphics.Color
import
android.os.Bundle
import
androidx.activity.addCallback
import
androidx.core.view.updatePadding
import
com.base.locationsharewhite.R
...
...
@@ -19,16 +20,17 @@ class HowUseActivity : BaseActivity<ActivityHowUseBinding>() {
}
var
isGuide
:
Boolean
=
false
private
var
isGuide
:
Boolean
=
false
override
fun
initView
()
{
BarUtils
.
setStatusBarLightMode
(
this
,
true
)
BarUtils
.
setStatusBarColor
(
this
,
Color
.
WHITE
)
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
val
recreated
=
changeLanguage
(
this
)
val
recreated
=
changeLanguage
(
this
,
intent
.
extras
?:
Bundle
()
)
if
(
recreated
)
return
isGuide
=
intent
.
extras
?.
getBoolean
(
"isGuide"
,
false
)
?:
false
LogEx
.
logDebug
(
TAG
,
"isGuide=$isGuide"
)
if
(
AdsMgr
.
adsConfigBean
.
functionInShowAd
&&
!
isGuide
)
{
AdsMgr
.
showInsert
(
this
,
showCallBack
=
object
:
AdsShowCallBack
()
{
...
...
@@ -44,9 +46,8 @@ class HowUseActivity : BaseActivity<ActivityHowUseBinding>() {
LogEx
.
logDebug
(
TAG
,
"where=$where"
)
}
})
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_app_exit
)
}
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_app_exit
)
}
override
fun
onResumeOneShoot
()
{
...
...
@@ -87,5 +88,4 @@ class HowUseActivity : BaseActivity<ActivityHowUseBinding>() {
}
}
}
\ No newline at end of file
app/src/main/java/com/base/locationsharewhite/ui/views/LocationPermissionDialog.kt
View file @
6578e535
...
...
@@ -8,7 +8,6 @@ import android.text.style.ForegroundColorSpan
import
android.view.Gravity
import
android.view.LayoutInflater
import
android.widget.LinearLayout
import
com.base.locationsharewhite.R
import
com.base.locationsharewhite.databinding.DialogAllowAllTimeLocationBinding
object
LocationPermissionDialog
{
...
...
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