aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-03-06 21:39:11 +0100
committerChristian Schneppe <christian@pix-art.de>2019-03-06 21:39:11 +0100
commitd393a18232f514aead394f404f61ad52bfb9d5f8 (patch)
tree4b73316eff8dd80c1c3e9ad29f0e3ae3c78b5811 /src/main/java/de/pixart
parentd450fe5113c5dab799eed214bf0b995dc57b985b (diff)
show progress while loading media files
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/MediaBrowserActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/MediaBrowserActivity.java b/src/main/java/de/pixart/messenger/ui/MediaBrowserActivity.java
index ce5291466..9aa308f57 100644
--- a/src/main/java/de/pixart/messenger/ui/MediaBrowserActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/MediaBrowserActivity.java
@@ -51,6 +51,8 @@ public class MediaBrowserActivity extends XmppActivity implements OnMediaLoaded
mMediaAdapter = new MediaAdapter(this, R.dimen.media_size);
this.binding.media.setAdapter(mMediaAdapter);
GridManager.setupLayoutManager(this, this.binding.media, R.dimen.browser_media_size);
+ this.binding.noMedia.setVisibility(View.GONE);
+ this.binding.progressbar.setVisibility(View.VISIBLE);
}
@Override
@@ -74,8 +76,10 @@ public class MediaBrowserActivity extends XmppActivity implements OnMediaLoaded
if (attachments.size() > 0) {
mMediaAdapter.setAttachments(attachments);
this.binding.noMedia.setVisibility(View.GONE);
+ this.binding.progressbar.setVisibility(View.GONE);
} else {
this.binding.noMedia.setVisibility(View.VISIBLE);
+ this.binding.progressbar.setVisibility(View.GONE);
}
});
}