Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf937b76 authored by Abhisek Devkota's avatar Abhisek Devkota
Browse files

Hide GlowPadView warnings

Make message verbose and contingent on DEBUG. This has been spamming
my logs everytime I touch navbar or lockscreen targets.

Change-Id: Iea1a6db86055d4034405f0ee4e20282b6c493210
parent a47942b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1316,7 +1316,7 @@ public class GlowPadView extends View {
        if (mTargetDescriptions == null || mTargetDescriptions.isEmpty() || index >= mTargetDescriptions.size()) {
            mTargetDescriptions = loadDescriptions(mTargetDescriptionsResourceId);
            if (mTargetDrawables.size() != mTargetDescriptions.size()) {
                Log.w(TAG, "The number of target drawables must be"
                if (DEBUG) Log.v(TAG, "The number of target drawables must be"
                        + " equal to the number of target descriptions.");
                return null;
            }
@@ -1328,7 +1328,7 @@ public class GlowPadView extends View {
        if (mDirectionDescriptions == null || mDirectionDescriptions.isEmpty() || index >= mDirectionDescriptions.size()) {
            mDirectionDescriptions = loadDescriptions(mDirectionDescriptionsResourceId);
            if (mTargetDrawables.size() != mDirectionDescriptions.size()) {
                Log.w(TAG, "The number of target drawables must be"
                if (DEBUG) Log.v(TAG, "The number of target drawables must be"
                        + " equal to the number of direction descriptions.");
                return null;
            }