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
06c541ce
Commit
06c541ce
authored
Dec 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
9eeee1fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
LocationShareListUtils.kt
...ase/locationsharewhite/location/LocationShareListUtils.kt
+6
-4
LocationShareActivity.kt
.../base/locationsharewhite/ui/main/LocationShareActivity.kt
+1
-2
No files found.
app/src/main/java/com/base/locationsharewhite/location/LocationShareListUtils.kt
View file @
06c541ce
...
@@ -112,15 +112,17 @@ object LocationShareListUtils {
...
@@ -112,15 +112,17 @@ object LocationShareListUtils {
.
put
(
"bp"
,
bp
)
.
put
(
"bp"
,
bp
)
.
toString
()
.
toString
()
val
paramJson
=
AESHelper
.
encrypt
(
body
)
val
paramJson
=
AESHelper
.
encrypt
(
body
)
LogEx
.
logDebug
(
TAG
,
"paramJson=$paramJson"
)
LogEx
.
logDebug
(
TAG
,
"
deleteShare
paramJson=$paramJson"
)
runCatching
{
runCatching
{
LogEx
.
logDebug
(
TAG
,
"deleteShare device=$device"
)
LogEx
.
logDebug
(
TAG
,
"deleteShare deleteUrl=$deleteUrl"
)
val
result
=
ReportUtils
.
doPost
(
deleteUrl
,
HashMap
(),
paramJson
)
val
result
=
ReportUtils
.
doPost
(
deleteUrl
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
LogEx
.
logDebug
(
TAG
,
"
deleteShare
result=$result"
)
val
responseData
=
LocationLoginUtils
.
extractData
(
result
)
val
responseData
=
LocationLoginUtils
.
extractData
(
result
)
LogEx
.
logDebug
(
TAG
,
"responseData=$responseData"
)
LogEx
.
logDebug
(
TAG
,
"
deleteShare
responseData=$responseData"
)
if
(
responseData
!=
null
)
{
if
(
responseData
!=
null
)
{
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
LogEx
.
logDebug
(
TAG
,
"decryptedData=$decryptedData"
)
LogEx
.
logDebug
(
TAG
,
"de
leteShare de
cryptedData=$decryptedData"
)
callBacK
.
invoke
(
decryptedData
.
toBoolean
())
callBacK
.
invoke
(
decryptedData
.
toBoolean
())
}
}
}
}
...
...
app/src/main/java/com/base/locationsharewhite/ui/main/LocationShareActivity.kt
View file @
06c541ce
...
@@ -145,7 +145,6 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
...
@@ -145,7 +145,6 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
}
}
binding
.
tvShare
.
setOnClickListener
{
binding
.
tvShare
.
setOnClickListener
{
val
code
=
binding
.
editCode
.
text
.
toString
()
val
code
=
binding
.
editCode
.
text
.
toString
()
if
(
code
.
isEmpty
())
{
if
(
code
.
isEmpty
())
{
toast
(
"code is empty"
,
true
)
toast
(
"code is empty"
,
true
)
...
@@ -175,7 +174,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
...
@@ -175,7 +174,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
}
}
}
}
fun
hideKeyBoard
()
{
private
fun
hideKeyBoard
()
{
val
imm
=
getSystemService
(
INPUT_METHOD_SERVICE
)
as
InputMethodManager
val
imm
=
getSystemService
(
INPUT_METHOD_SERVICE
)
as
InputMethodManager
if
(
currentFocus
!=
null
)
{
if
(
currentFocus
!=
null
)
{
imm
.
hideSoftInputFromWindow
(
currentFocus
!!
.
windowToken
,
0
)
imm
.
hideSoftInputFromWindow
(
currentFocus
!!
.
windowToken
,
0
)
...
...
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