Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
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
File Recovery RecycleBin
Commits
16ed26eb
Commit
16ed26eb
authored
Jul 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
3d47efc0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
6 deletions
+38
-6
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-4
BatteryActivity.kt
...ilerecoveryrecyclebin/activity/battery/BatteryActivity.kt
+21
-0
SimilarHelper.kt
...va/com/base/filerecoveryrecyclebin/utils/SimilarHelper.kt
+2
-2
activity_battery.xml
app/src/main/res/layout/activity_battery.xml
+11
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
16ed26eb
...
...
@@ -34,6 +34,9 @@
android:supportsRtl=
"true"
android:theme=
"@style/Theme.DataRecovery"
tools:targetApi=
"34"
>
<activity
android:name=
".activity.battery.BatteryActivity"
android:exported=
"false"
/>
<activity
android:name=
".activity.SplashActivity"
android:exported=
"true"
...
...
@@ -45,7 +48,6 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
".activity.largefile.LargeFileAnimationActivity"
android:exported=
"false"
...
...
@@ -257,9 +259,7 @@
<meta-data
android:name=
"android.support.FILE_PROVIDER_PATHS"
android:resource=
"@xml/file_paths"
/>
</provider>
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
</provider>
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:value=
"ca-app-pub-3940256099942544~3347511713"
/>
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/battery/BatteryActivity.kt
0 → 100644
View file @
16ed26eb
package
com.base.filerecoveryrecyclebin.activity.battery
import
android.graphics.Color
import
androidx.core.view.updatePadding
import
com.base.filerecoveryrecyclebin.databinding.ActivityBatteryBinding
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.utils.BarUtils
class
BatteryActivity
:
BaseActivity
<
ActivityBatteryBinding
>()
{
override
val
binding
:
ActivityBatteryBinding
by
lazy
{
ActivityBatteryBinding
.
inflate
(
layoutInflater
)
}
override
fun
initView
()
{
BarUtils
.
setStatusBarLightMode
(
this
,
true
)
BarUtils
.
setStatusBarColor
(
this
,
Color
.
parseColor
(
"#FAFAFA"
))
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/utils/SimilarHelper.kt
View file @
16ed26eb
...
...
@@ -37,7 +37,7 @@ object SimilarHelper {
if
(
item
.
path
!=
compareItem
.
path
)
{
val
percent
=
opencvCompareSimilar
(
item
.
path
,
compareItem
.
path
)
if
(
percent
>
9
6
)
{
if
(
percent
>
9
8.5
)
{
if
(
result
[
item
.
path
]
==
null
)
{
LogEx
.
logDebug
(
TAG
,
"item=$item"
)
result
[
item
.
path
]
=
arrayListOf
()
...
...
@@ -46,7 +46,7 @@ object SimilarHelper {
result
[
item
.
path
]
?.
add
(
item
)
}
result
[
item
.
path
]
?.
add
(
compareItem
)
LogEx
.
logDebug
(
TAG
,
"percent=$percent $
item $compareItem
"
)
LogEx
.
logDebug
(
TAG
,
"percent=$percent $
{item.path} vs ${compareItem.path}
"
)
LogEx
.
logDebug
(
TAG
,
"compareItem=$compareItem"
)
haveComperedList
.
add
(
compareItem
.
path
)
compareIterator
.
remove
()
...
...
app/src/main/res/layout/activity_battery.xml
0 → 100644
View file @
16ed26eb
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#FAFAFA"
tools:context=
".activity.battery.BatteryActivity"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
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