aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ImportBackupActivity.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ImportBackupActivity.java b/src/main/java/de/pixart/messenger/ui/ImportBackupActivity.java
index 5397eeaf2..5414e6bbf 100644
--- a/src/main/java/de/pixart/messenger/ui/ImportBackupActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ImportBackupActivity.java
@@ -81,7 +81,16 @@ public class ImportBackupActivity extends XmppActivity implements ServiceConnect
@Override
public void onBackupFilesLoaded(final List<ImportBackupService.BackupFile> files) {
- runOnUiThread(() -> backupFileAdapter.setFiles(files));
+ runOnUiThread(() -> {
+ if (files.size() >= 1) {
+ this.binding.hint.setVisibility(View.GONE);
+ this.binding.list.setVisibility(View.VISIBLE);
+ backupFileAdapter.setFiles(files);
+ } else {
+ this.binding.list.setVisibility(View.GONE);
+ this.binding.hint.setVisibility(View.VISIBLE);
+ }
+ });
}
@Override