aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <harsh@prjkt.io>2018-06-30 21:04:58 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-30 21:10:52 +0200
commit15f2dda07123b32b6a07cdfdcf357a6290cab0c1 (patch)
tree4342032b94c4932f5df784dfa36aec426fe24539 /app/src
parentandroid: VersionPreference: Handle no-browser-installed case (diff)
downloadwireguard-android-15f2dda07123b32b6a07cdfdcf357a6290cab0c1.tar.xz
wireguard-android-15f2dda07123b32b6a07cdfdcf357a6290cab0c1.zip
android: FloatingActionsMenu: Don't create labels on ASUS' Android 5 devices
They have completely wrecked the framework there and all efforts to work around their absolutely broken software have been in vain, hence let's atleast let users be able to use the app, labels or otherwise. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
index 24bb8d25..4718dd8c 100644
--- a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
+++ b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
@@ -17,6 +17,7 @@ import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
+import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;
@@ -400,6 +401,8 @@ public class FloatingActionsMenu extends ViewGroup {
}
private void createLabels() {
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1 && Build.BRAND.equals("ASUS"))
+ return;
final Context context = new ContextThemeWrapper(getContext(), mLabelsStyle);
for (int i = 0; i < mButtonsCount; i++) {