mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
show error message
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
4da8a94a75
commit
529488a9af
2 changed files with 4 additions and 0 deletions
|
@ -1812,6 +1812,9 @@ public class FileDisplayActivity extends HookActivity
|
|||
FileDetailFragment fileDetailFragment = (FileDetailFragment) getSecondFragment();
|
||||
fileDetailFragment.getFileDetailActivitiesFragment().reload();
|
||||
}
|
||||
} else {
|
||||
Snackbar.make(getSecondFragment().getView(), R.string.file_version_restored_error,
|
||||
Snackbar.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -800,4 +800,5 @@
|
|||
<string name="restore">Restore file</string>
|
||||
<string name="new_version_was_created">New version was created</string>
|
||||
<string name="file_version_restored_successfully">Successfully restored file version.</string>
|
||||
<string name="file_version_restored_error">Error restoring file version!</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue