aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-06-18 19:07:47 +0200
committerChristian Schneppe <christian@pix-art.de>2019-06-18 19:07:47 +0200
commitf09d784928e7852c72cda7859be0cd366c679ac0 (patch)
tree4e6a997a40176004af20f033380c5f45de219ac7 /src/main/java/de
parentfe4c5fabf7a9da61b52ce6a269d1df0493826e01 (diff)
small improvement of welcome screen
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