From dc913fc8ca67662aa43c77e49cf0dec43e046ad0 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Tue, 12 Jun 2018 13:24:59 +0200 Subject: [PATCH] remove branding of glow effect --- .../keychain/KeychainApplication.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java index 163cd6354..f2dab9451 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java @@ -87,9 +87,6 @@ public class KeychainApplication extends Application { } */ - brandGlowEffect(getApplicationContext(), - FormattingUtils.getColorFromAttr(getApplicationContext(), R.attr.colorPrimary)); - // Add OpenKeychain account to Android to link contacts with keys and keyserver sync createAccountIfNecessary(this); @@ -157,26 +154,6 @@ public class KeychainApplication extends Application { } } - static void brandGlowEffect(Context context, int brandColor) { - // no hack on Android 5 - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { - try { - // terrible hack to brand the edge overscroll glow effect - // https://gist.github.com/menny/7878762#file-brandgloweffect_full-java - - //glow - int glowDrawableId = context.getResources().getIdentifier("overscroll_glow", "drawable", "android"); - Drawable androidGlow = context.getResources().getDrawable(glowDrawableId); - androidGlow.setColorFilter(brandColor, PorterDuff.Mode.SRC_IN); - //edge - int edgeDrawableId = context.getResources().getIdentifier("overscroll_edge", "drawable", "android"); - Drawable androidEdge = context.getResources().getDrawable(edgeDrawableId); - androidEdge.setColorFilter(brandColor, PorterDuff.Mode.SRC_IN); - } catch (Exception ignored) { - } - } - } - private void updateLoggingStatus() { Timber.uprootAll(); boolean enableDebugLogging = Constants.DEBUG;