We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2500441 commit 76e7a1cCopy full SHA for 76e7a1c
1 file changed
app/src/main/java/com/tool/tree/PredictiveBackHelper.kt
@@ -1,8 +1,8 @@
1
package com.tool.tree
2
3
-import android.app.Activity
4
import android.view.View
5
import androidx.activity.BackEventCompat
+import androidx.activity.ComponentActivity
6
import androidx.activity.OnBackPressedCallback
7
import androidx.activity.OnBackPressedDispatcher
8
@@ -29,7 +29,7 @@ import androidx.activity.OnBackPressedDispatcher
29
* "rớt" về giống như back thường (không animation), không cần code riêng xử lý.
30
*/
31
class PredictiveBackHelper(
32
- private val activity: Activity,
+ private val activity: ComponentActivity,
33
private val contentView: View,
34
// Tỉ lệ scale nhỏ nhất khi kéo hết cỡ (progress = 1f). Vd 0.9f = thu nhỏ còn 90%.
35
private val minScale: Float = 0.9f,
0 commit comments