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) -> {
|
alt_bld.setNegativeButton(R.string.no, (dialog, id) -> {
|
||||||
|
try {
|
||||||
|
new StatusDraft(ComposeActivity.this).removeDraft(statusDraft);
|
||||||
|
} catch (DBException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
finish();
|
finish();
|
||||||
});
|
});
|
||||||
|
|
|
@ -145,7 +145,7 @@ public class FollowedTagActivity extends BaseActivity implements FollowedTagAdap
|
||||||
tagList.add(0, newTag);
|
tagList.add(0, newTag);
|
||||||
followedTagAdapter.notifyItemInserted(0);
|
followedTagAdapter.notifyItemInserted(0);
|
||||||
} else {
|
} 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();
|
dialog.dismiss();
|
||||||
|
|
|
@ -1985,4 +1985,5 @@
|
||||||
<string name="follow_tag">Follow tag</string>
|
<string name="follow_tag">Follow tag</string>
|
||||||
<string name="action_lists_edit">Edit list</string>
|
<string name="action_lists_edit">Edit list</string>
|
||||||
<string name="profiles">Profiles</string>
|
<string name="profiles">Profiles</string>
|
||||||
|
<string name="toast_feature_not_supported">Your instance does not seem to support that feature!</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue