Fix issue #460 - Specific messages when a feature is not supported.
This commit is contained in:
parent
9a64dd60b0
commit
869b4d25e2
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1985,4 +1985,5 @@
|
|||
<string name="follow_tag">Follow tag</string>
|
||||
<string name="action_lists_edit">Edit list</string>
|
||||
<string name="profiles">Profiles</string>
|
||||
<string name="toast_feature_not_supported">Your instance does not seem to support that feature!</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue