From af95dab520cebb3450ada1b76e08aebe87181a28 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Thu, 30 Apr 2020 12:19:24 +0200 Subject: [PATCH] profile editor bug fix --- .../main/java/org/nuclearfog/twidda/backend/ProfileUpdater.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileUpdater.java b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileUpdater.java index 5ece2619..4e82d1d0 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileUpdater.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileUpdater.java @@ -103,6 +103,8 @@ public class ProfileUpdater extends AsyncTask { popup.get().dismiss(); if (twException != null) { Toast.makeText(ui.get(), twException.getMessageResource(), LENGTH_SHORT).show(); + if (userHolder == null) + ui.get().finish(); } else if (user != null) { ui.get().setUser(user); } else if (userHolder != null) {