show error message

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-06-08 11:44:35 +02:00 committed by AndyScherzinger
parent 4da8a94a75
commit 529488a9af
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 0 deletions

View file

@ -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();
}
}

View file

@ -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>