mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Fix an issue with loading background due to etags usage
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7621081449
commit
4d0fa0927b
@ -85,7 +85,6 @@ public class ReadFilesystemOperation {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
remoteFiles.add(BrowserFile.getModelFromResponse(rootElement[0],
|
||||
rootElement[0].getHref().toString().substring(basePath.length())));
|
||||
for (Response memberElement : memberElements) {
|
||||
|
@ -413,6 +413,7 @@ public class CallNotificationController extends BaseController {
|
||||
dataSource.subscribe(new BaseBitmapDataSubscriber() {
|
||||
@Override
|
||||
protected void onNewResultImpl(@Nullable Bitmap bitmap) {
|
||||
if (avatarImageView != null) {
|
||||
avatarImageView.getHierarchy().setImage(new BitmapDrawable(bitmap), 100,
|
||||
true);
|
||||
|
||||
@ -421,7 +422,7 @@ public class CallNotificationController extends BaseController {
|
||||
.incoming_gradient));
|
||||
}
|
||||
|
||||
if (AvatarStatusCodeHolder.getInstance().getStatusCode() == 200 &&
|
||||
if ((AvatarStatusCodeHolder.getInstance().getStatusCode() == 200 || AvatarStatusCodeHolder.getInstance().getStatusCode() == 0) &&
|
||||
userBeingCalled.hasSpreedCapabilityWithName("no-ping")) {
|
||||
if (getActivity() != null) {
|
||||
Bitmap backgroundBitmap = bitmap.copy(bitmap.getConfig(), true);
|
||||
@ -440,10 +441,10 @@ public class CallNotificationController extends BaseController {
|
||||
backgroundImageView.setImageDrawable(new ColorDrawable(color));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFailureImpl(DataSource<CloseableReference<CloseableImage>> dataSource) {
|
||||
|
||||
}
|
||||
}, UiThreadImmediateExecutorService.getInstance());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user