Skip to content

Commit 70c0f0e

Browse files
committed
fix: remove the confusing dialog
1 parent 805a58d commit 70c0f0e

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

app/src/main/java/me/ash/reader/ui/page/settings/troubleshooting/TroubleshootingViewModel.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import me.ash.reader.infrastructure.di.IODispatcher
2424
import me.ash.reader.infrastructure.di.MainDispatcher
2525
import me.ash.reader.ui.ext.fromDataStoreToJSONString
2626
import me.ash.reader.ui.ext.fromJSONStringToDataStore
27-
import me.ash.reader.ui.ext.isProbableProtobuf
2827

2928
@HiltViewModel
3029
class TroubleshootingViewModel
@@ -54,11 +53,11 @@ constructor(
5453
}
5554

5655
fun tryImport(context: Context, byteArray: ByteArray) {
57-
if (!byteArray.isProbableProtobuf()) {
58-
showWarningDialog()
59-
} else {
60-
importPreferencesFromJSON(context, byteArray)
61-
}
56+
// if (!byteArray.isProbableProtobuf()) {
57+
// showWarningDialog()
58+
// } else {
59+
importPreferencesFromJSON(context, byteArray)
60+
// }
6261
}
6362

6463
fun importPreferencesFromJSON(context: Context, byteArray: ByteArray) {

0 commit comments

Comments
 (0)