refactor: 移除不必要的导入
This commit is contained in:
parent
c20c747baa
commit
02d7d2a444
3 changed files with 2 additions and 2 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.activities.CrashActivity"
|
android:name=".ui.activities.CrashActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
|
android:launchMode="singleTask"
|
||||||
android:theme="@style/Theme.ToDo" />
|
android:theme="@style/Theme.ToDo" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package cn.super12138.todo.constants
|
package cn.super12138.todo.constants
|
||||||
|
|
||||||
import cn.super12138.todo.utils.SPDelegates
|
import cn.super12138.todo.utils.SPDelegates
|
||||||
import cn.super12138.todo.utils.SPUtils
|
|
||||||
|
|
||||||
object GlobalValues {
|
object GlobalValues {
|
||||||
var dynamicColor: Boolean by SPDelegates(
|
var dynamicColor: Boolean by SPDelegates(
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ fun SettingsData(
|
||||||
|
|
||||||
val restoreLauncher = rememberLauncherForActivityResult(
|
val restoreLauncher = rememberLauncherForActivityResult(
|
||||||
contract = ActivityResultContracts.OpenDocument(),
|
contract = ActivityResultContracts.OpenDocument(),
|
||||||
onResult = { it ->
|
onResult = {
|
||||||
if (it != null) {
|
if (it != null) {
|
||||||
viewModel.restoreDatabase(
|
viewModel.restoreDatabase(
|
||||||
uri = it,
|
uri = it,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue