From 5c8431eda5f5aded169f89842f0f965e30842b73 Mon Sep 17 00:00:00 2001 From: Raymond Lai Date: Tue, 7 Jan 2020 16:03:32 +0800 Subject: [PATCH] Exit onCreate() if no URI provided in intent Fixes #1808. --- .../com/amaze/filemanager/activities/TextEditorActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/amaze/filemanager/activities/TextEditorActivity.java b/app/src/main/java/com/amaze/filemanager/activities/TextEditorActivity.java index 594757dba3..eacc6d84de 100644 --- a/app/src/main/java/com/amaze/filemanager/activities/TextEditorActivity.java +++ b/app/src/main/java/com/amaze/filemanager/activities/TextEditorActivity.java @@ -193,6 +193,7 @@ else if (getAppTheme().equals(AppTheme.BLACK)) } else { Toast.makeText(this, R.string.no_file_error, Toast.LENGTH_LONG).show(); finish(); + return; } getSupportActionBar().setTitle(mFile.name);