From c664a37ea05c51ba618d0cba90d7e07c7baf4b61 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Thu, 15 Jun 2023 19:46:20 +0200 Subject: [PATCH] fixed crash --- .../java/org/nuclearfog/twidda/config/impl/ConfigAccount.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/nuclearfog/twidda/config/impl/ConfigAccount.java b/app/src/main/java/org/nuclearfog/twidda/config/impl/ConfigAccount.java index fe49513a..3ea23380 100644 --- a/app/src/main/java/org/nuclearfog/twidda/config/impl/ConfigAccount.java +++ b/app/src/main/java/org/nuclearfog/twidda/config/impl/ConfigAccount.java @@ -129,11 +129,9 @@ public class ConfigAccount implements Account { case API_TWITTER_2: return Configuration.TWITTER2; + default: case API_MASTODON: return Configuration.MASTODON; - - default: - throw new RuntimeException("wrong API type: " + apiType); } }