From 869b4d25e2f95d86c8c708a176c0872c27989ea0 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 16 Nov 2022 17:29:38 +0100 Subject: [PATCH] Fix issue #460 - Specific messages when a feature is not supported. --- .../java/app/fedilab/android/activities/ComposeActivity.java | 5 +++++ .../app/fedilab/android/activities/FollowedTagActivity.java | 2 +- app/src/main/res/values/strings.xml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java index 360f8d7e..1dae4508 100644 --- a/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/ComposeActivity.java @@ -222,6 +222,11 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana }); alt_bld.setNegativeButton(R.string.no, (dialog, id) -> { + try { + new StatusDraft(ComposeActivity.this).removeDraft(statusDraft); + } catch (DBException e) { + e.printStackTrace(); + } dialog.dismiss(); finish(); }); diff --git a/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java b/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java index 84e9e25f..cf9c3207 100644 --- a/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java @@ -145,7 +145,7 @@ public class FollowedTagActivity extends BaseActivity implements FollowedTagAdap tagList.add(0, newTag); followedTagAdapter.notifyItemInserted(0); } else { - Toasty.error(FollowedTagActivity.this, getString(R.string.toast_error), Toasty.LENGTH_LONG).show(); + Toasty.error(FollowedTagActivity.this, getString(R.string.toast_feature_not_supported), Toasty.LENGTH_LONG).show(); } }); dialog.dismiss(); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e2b2b192..f6699542 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1985,4 +1985,5 @@ Follow tag Edit list Profiles + Your instance does not seem to support that feature!