mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 17:57:42 +00:00
c2e5f4e80a
Closes #3498 // FREEBIE
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
package org.thoughtcrime.securesms.components;
|
|
|
|
import android.annotation.TargetApi;
|
|
import android.content.Context;
|
|
import android.os.Build.VERSION_CODES;
|
|
import android.util.AttributeSet;
|
|
import android.widget.FrameLayout;
|
|
|
|
public class SquareFrameLayout extends FrameLayout {
|
|
@SuppressWarnings("unused")
|
|
public SquareFrameLayout(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
@SuppressWarnings("unused")
|
|
public SquareFrameLayout(Context context, AttributeSet attrs) {
|
|
super(context, attrs);
|
|
}
|
|
|
|
@TargetApi(VERSION_CODES.HONEYCOMB) @SuppressWarnings("unused")
|
|
public SquareFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
|
super(context, attrs, defStyleAttr);
|
|
}
|
|
|
|
@TargetApi(VERSION_CODES.LOLLIPOP) @SuppressWarnings("unused")
|
|
public SquareFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
|
super(context, attrs, defStyleAttr, defStyleRes);
|
|
}
|
|
|
|
@Override
|
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
|
//noinspection SuspiciousNameCombination
|
|
super.onMeasure(widthMeasureSpec, widthMeasureSpec);
|
|
}
|
|
}
|