We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b331e commit 260da45Copy full SHA for 260da45
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/ReadTextActivity.kt
@@ -204,6 +204,9 @@ class ReadTextActivity : SimpleActivity() {
204
} else {
205
try {
206
contentResolver.openInputStream(uri)!!.bufferedReader().use { it.readText() }
207
+ } catch (e: OutOfMemoryError) {
208
+ showErrorToast(e.toString())
209
+ return@ensureBackgroundThread
210
} catch (e: Exception) {
211
showErrorToast(e)
212
finish()
0 commit comments