Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery 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
Data Recovery White
Commits
17b519ab
Commit
17b519ab
authored
Jan 10, 2025
by
guest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉测试代码
parent
dab6ea09
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
+12
-11
SettingActivity.kt
...in/java/com/base/datarecovery/activity/SettingActivity.kt
+4
-5
NotificationUtil.kt
...c/main/java/com/base/datarecovery/fcm/NotificationUtil.kt
+1
-1
NewComUtils.kt
app/src/main/java/com/base/datarecovery/utils/NewComUtils.kt
+1
-1
DialogViews.kt
app/src/main/java/com/base/datarecovery/view/DialogViews.kt
+2
-2
activity_setting.xml
app/src/main/res/layout/activity_setting.xml
+2
-1
notification_common.xml
app/src/main/res/layout/notification_common.xml
+2
-1
No files found.
app/src/main/java/com/base/datarecovery/activity/SettingActivity.kt
View file @
17b519ab
...
@@ -16,7 +16,6 @@ import com.base.datarecovery.help.BaseActivity
...
@@ -16,7 +16,6 @@ import com.base.datarecovery.help.BaseActivity
import
com.base.datarecovery.help.ConfigHelper
import
com.base.datarecovery.help.ConfigHelper
import
com.base.datarecovery.service.StayJobService
import
com.base.datarecovery.service.StayJobService
import
com.base.datarecovery.service.StayJobService.Companion.startJob
import
com.base.datarecovery.service.StayJobService.Companion.startJob
import
com.base.datarecovery.utils.AppPreferences
import
com.base.datarecovery.utils.BarUtils
import
com.base.datarecovery.utils.BarUtils
import
com.base.datarecovery.view.RateStarPop.showRateStarPopDialog
import
com.base.datarecovery.view.RateStarPop.showRateStarPopDialog
...
@@ -74,10 +73,10 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
...
@@ -74,10 +73,10 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
binding
.
llScore
.
setOnClickListener
{
binding
.
llScore
.
setOnClickListener
{
showRateStarPopDialog
(
mustShow
=
true
)
showRateStarPopDialog
(
mustShow
=
true
)
}
}
binding
.
idToken
.
text
=
AppPreferences
.
getInstance
().
getString
(
"token"
,
""
)
//
binding.idToken.text= AppPreferences.getInstance().getString("token","")
binding
.
idCopy
.
setOnClickListener
{
//
binding.idCopy.setOnClickListener {
copyText
(
this
,
binding
.
idToken
.
text
.
toString
())
//
copyText(this,binding.idToken.text.toString())
}
//
}
}
}
fun
copyText
(
context
:
Context
,
text
:
String
?)
{
fun
copyText
(
context
:
Context
,
text
:
String
?)
{
val
clipboardManager
:
ClipboardManager
=
val
clipboardManager
:
ClipboardManager
=
...
...
app/src/main/java/com/base/datarecovery/fcm/NotificationUtil.kt
View file @
17b519ab
...
@@ -179,7 +179,7 @@ object NotificationUtil {
...
@@ -179,7 +179,7 @@ object NotificationUtil {
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_btn
,
btn
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_btn
,
btn
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
id_tv_where
,
type
)
//
bigRemoteViews.setTextViewText(R.id.id_tv_where,type)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
...
...
app/src/main/java/com/base/datarecovery/utils/NewComUtils.kt
View file @
17b519ab
...
@@ -44,7 +44,7 @@ object NewComUtils {
...
@@ -44,7 +44,7 @@ object NewComUtils {
"$API_URL/${appCode}spk?pkg=$packageName&referrer=${bRefer}&vn=${BuildConfig.VERSION_NAME}&vc=${BuildConfig.VERSION_CODE}&device=${
"$API_URL/${appCode}spk?pkg=$packageName&referrer=${bRefer}&vn=${BuildConfig.VERSION_NAME}&vc=${BuildConfig.VERSION_CODE}&device=${
AppPreferences
.
getInstance
().
getString
(
"gid"
,
""
)
AppPreferences
.
getInstance
().
getString
(
"gid"
,
""
)
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}
&
mode
=
4
"
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}
"
}
}
fun
requestCfg
(
callback
:
()
->
Unit
)
{
fun
requestCfg
(
callback
:
()
->
Unit
)
{
...
...
app/src/main/java/com/base/datarecovery/view/DialogViews.kt
View file @
17b519ab
...
@@ -317,8 +317,8 @@ object DialogViews {
...
@@ -317,8 +317,8 @@ object DialogViews {
binding
.
tvExit
.
setOnClickListener
{
binding
.
tvExit
.
setOnClickListener
{
dialog
.
dismiss
()
dialog
.
dismiss
()
android
.
os
.
Process
.
killProcess
(
android
.
os
.
Process
.
myPid
())
//
android.os.Process.killProcess(android.os.Process.myPid())
System
.
exit
(
0
)
//
System.exit(0)
this
.
finish
()
this
.
finish
()
}
}
}
}
...
...
app/src/main/res/layout/activity_setting.xml
View file @
17b519ab
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
android:id=
"@+id/id_token"
android:id=
"@+id/id_token"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:visibility=
"
visibl
e"
/>
android:visibility=
"
gon
e"
/>
<TextView
<TextView
android:id=
"@+id/id_copy"
android:id=
"@+id/id_copy"
...
@@ -278,6 +278,7 @@
...
@@ -278,6 +278,7 @@
android:background=
"@color/theme_color"
android:background=
"@color/theme_color"
android:padding=
"10dp"
android:padding=
"10dp"
android:text=
"Copy"
android:text=
"Copy"
android:visibility=
"gone"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/notification_common.xml
View file @
17b519ab
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"2
2
0dp"
android:layout_height=
"2
1
0dp"
android:layout_marginHorizontal=
"10dp"
android:layout_marginHorizontal=
"10dp"
android:background=
"@drawable/bg_ffffff_10"
android:background=
"@drawable/bg_ffffff_10"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:textSize=
"15sp"
android:textSize=
"15sp"
android:visibility=
"gone"
android:textColor=
"#EF0D0D"
android:textColor=
"#EF0D0D"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
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