mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 16:00:02 +00:00
Add drop shadows and roundier corners to new bubbles.
// FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
db9656c70c
commit
99c9c73c9d
@@ -99,13 +99,6 @@ public class ThumbnailView extends RoundedImageView {
|
||||
if (isContextValid()) Glide.clear(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
View dv = ((Activity) this.getContext()).getWindow().getDecorView();
|
||||
int size = Math.min(dv.getWidth(), dv.getHeight()) * 55 / 100;
|
||||
setMeasuredDimension(size, size);
|
||||
}
|
||||
|
||||
@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
|
||||
private boolean isContextValid() {
|
||||
return !(getContext() instanceof Activity) ||
|
||||
|
||||
Reference in New Issue
Block a user