Skip to content

Commit 82dd1cc

Browse files
alperozturk96backportbot[bot]
authored andcommitted
show toast on main thread
Signed-off-by: alperozturk <[email protected]>
1 parent db4de6a commit 82dd1cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/it/niedermann/owncloud/notes/edit/EditNoteActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ protected void onCreate(final Bundle savedInstanceState) {
8282
throw new NoCurrentAccountSelectedException(EditNoteActivity.this);
8383
}
8484
} catch (Exception e) {
85-
Toast.makeText(this, R.string.no_account_configured_yet, Toast.LENGTH_LONG).show();
86-
finish();
85+
runOnUiThread(() -> {
86+
Toast.makeText(EditNoteActivity.this, R.string.no_account_configured_yet, Toast.LENGTH_LONG).show();
87+
finish();
88+
});
8789
}
8890
}).start();
8991

0 commit comments

Comments
 (0)