Skip to content

Commit ea1a6cd

Browse files
authored
Merge pull request #622 from ismailnurudeen/fix/import-from-internet
fix: separate error message for network exception during import
2 parents eb30a44 + 7f74a8d commit ea1a6cd

File tree

21 files changed

+23
-20
lines changed

21 files changed

+23
-20
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.simplemobiletools.notes.pro.activities
22

3+
import android.accounts.NetworkErrorException
34
import android.annotation.SuppressLint
45
import android.app.Activity
56
import android.content.ActivityNotFoundException
@@ -872,6 +873,8 @@ class MainActivity : SimpleActivity() {
872873
startActivityForResult(this, PICK_EXPORT_FILE_INTENT)
873874
} catch (e: ActivityNotFoundException) {
874875
toast(R.string.system_service_disabled, Toast.LENGTH_LONG)
876+
} catch (e: NetworkErrorException) {
877+
toast(getString(R.string.cannot_load_over_internet), Toast.LENGTH_LONG)
875878
} catch (e: Exception) {
876879
showErrorToast(e)
877880
}

app/src/main/res/values-ar/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-be/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-ca/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-cs/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-da/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-et/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

app/src/main/res/values-fr/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Haven't found some strings? There's more at
8686
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
8787
-->
88-
</resources>
88+
</resources>

0 commit comments

Comments
 (0)