From e5c7c614026ee3b05f2a5d47909c08eb942659de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Tue, 17 Apr 2018 22:41:56 +0200 Subject: [PATCH] Check isFinishing when creating a Toast in some cases. For code that may be run in the background this is necessary to avoid a BadTokenException when trying to display the Toast with no active window. --- AndroidManifest.xml | 2 +- .../hughes/android/dictionary/DictionaryActivity.java | 3 ++- .../android/dictionary/DictionaryManagerActivity.java | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 192b804..647d12d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@