summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java')
-rw-r--r--app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java b/app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java
index 8fa4f9ae..0759903b 100644
--- a/app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java
+++ b/app/src/main/java/com/wireguard/android/widget/MultiselectableRelativeLayout.java
@@ -12,23 +12,25 @@ import android.widget.RelativeLayout;
import com.wireguard.android.R;
public class MultiselectableRelativeLayout extends RelativeLayout {
+ private static final int[] STATE_MULTISELECTED = {R.attr.state_multiselected};
+ private boolean multiselected;
+
public MultiselectableRelativeLayout(final Context context) {
super(context);
}
+
public MultiselectableRelativeLayout(final Context context, final AttributeSet attrs) {
super(context, attrs);
}
+
public MultiselectableRelativeLayout(final Context context, final AttributeSet attrs, final int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
+
public MultiselectableRelativeLayout(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
- private static final int[] STATE_MULTISELECTED = { R.attr.state_multiselected };
-
- private boolean multiselected;
-
@Override
protected int[] onCreateDrawableState(final int extraSpace) {
if (multiselected) {