File tree Expand file tree Collapse file tree
app/src/main/java/me/ash/reader/ui/page/settings/troubleshooting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import me.ash.reader.infrastructure.di.IODispatcher
2424import me.ash.reader.infrastructure.di.MainDispatcher
2525import me.ash.reader.ui.ext.fromDataStoreToJSONString
2626import me.ash.reader.ui.ext.fromJSONStringToDataStore
27- import me.ash.reader.ui.ext.isProbableProtobuf
2827
2928@HiltViewModel
3029class 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 ) {
You can’t perform that action at this time.
0 commit comments