Skip to content

Commit 76e7a1c

Browse files
committed
Update
1 parent 2500441 commit 76e7a1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/tool/tree/PredictiveBackHelper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.tool.tree
22

3-
import android.app.Activity
43
import android.view.View
54
import androidx.activity.BackEventCompat
5+
import androidx.activity.ComponentActivity
66
import androidx.activity.OnBackPressedCallback
77
import androidx.activity.OnBackPressedDispatcher
88

@@ -29,7 +29,7 @@ import androidx.activity.OnBackPressedDispatcher
2929
* "rớt" về giống như back thường (không animation), không cần code riêng xử lý.
3030
*/
3131
class PredictiveBackHelper(
32-
private val activity: Activity,
32+
private val activity: ComponentActivity,
3333
private val contentView: View,
3434
// Tỉ lệ scale nhỏ nhất khi kéo hết cỡ (progress = 1f). Vd 0.9f = thu nhỏ còn 90%.
3535
private val minScale: Float = 0.9f,

0 commit comments

Comments
 (0)