Commit 16ed26eb authored by wanglei's avatar wanglei

...

parent 3d47efc0
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.DataRecovery" android:theme="@style/Theme.DataRecovery"
tools:targetApi="34"> tools:targetApi="34">
<activity
android:name=".activity.battery.BatteryActivity"
android:exported="false" />
<activity <activity
android:name=".activity.SplashActivity" android:name=".activity.SplashActivity"
android:exported="true" android:exported="true"
...@@ -45,7 +48,6 @@ ...@@ -45,7 +48,6 @@
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".activity.largefile.LargeFileAnimationActivity" android:name=".activity.largefile.LargeFileAnimationActivity"
android:exported="false" android:exported="false"
...@@ -257,9 +259,7 @@ ...@@ -257,9 +259,7 @@
<meta-data <meta-data
android:name="android.support.FILE_PROVIDER_PATHS" android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" /> android:resource="@xml/file_paths" />
</provider> </provider> <!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data <meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID" android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" /> android:value="ca-app-pub-3940256099942544~3347511713" />
......
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
...@@ -37,7 +37,7 @@ object SimilarHelper { ...@@ -37,7 +37,7 @@ object SimilarHelper {
if (item.path != compareItem.path) { if (item.path != compareItem.path) {
val percent = opencvCompareSimilar(item.path, compareItem.path) val percent = opencvCompareSimilar(item.path, compareItem.path)
if (percent > 96) { if (percent > 98.5) {
if (result[item.path] == null) { if (result[item.path] == null) {
LogEx.logDebug(TAG, "item=$item") LogEx.logDebug(TAG, "item=$item")
result[item.path] = arrayListOf() result[item.path] = arrayListOf()
...@@ -46,7 +46,7 @@ object SimilarHelper { ...@@ -46,7 +46,7 @@ object SimilarHelper {
result[item.path]?.add(item) result[item.path]?.add(item)
} }
result[item.path]?.add(compareItem) 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") LogEx.logDebug(TAG, "compareItem=$compareItem")
haveComperedList.add(compareItem.path) haveComperedList.add(compareItem.path)
compareIterator.remove() compareIterator.remove()
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment