show only fieldname in toast when saving failed

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2021-04-08 15:07:18 +02:00
parent ea50cf60e5
commit 983509396d
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 1 additions and 2 deletions

View file

@ -464,7 +464,6 @@ public class ProfileController extends BaseController {
item.text = userInfo.getValueByField(item.field);
Toast.makeText(getApplicationContext(),
String.format(getResources().getString(R.string.failed_to_save),
item.text,
item.field),
Toast.LENGTH_LONG).show();
adapter.updateFilteredList();

View file

@ -388,5 +388,5 @@
<string name="path_password_strike_through" translatable="false" tools:override="true">M3.27,4.27L19.74,20.74</string>
<string name="tooManyUnreadMessages" translatable="false">999+</string>
<string name="nc_action_open_main_menu">Open main menu</string>
<string name="failed_to_save">Failed to save %1$s as %2$s</string>
<string name="failed_to_save">Failed to save %1$s</string>
</resources>