Commit 16ed26eb authored by wanglei's avatar wanglei

...

parent 3d47efc0
......@@ -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" />
......
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 {
if (item.path != compareItem.path) {
val percent = opencvCompareSimilar(item.path, compareItem.path)
if (percent > 96) {
if (percent > 98.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()
......
<?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