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

Commit 72b93ada authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Steve Kondik
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 47f5b0e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1254,7 +1254,7 @@ public class GlowPadView extends View {
        if (mTargetDescriptions == null || mTargetDescriptions.isEmpty()) {
        if (mTargetDescriptions == null || mTargetDescriptions.isEmpty()) {
            mTargetDescriptions = loadDescriptions(mTargetDescriptionsResourceId);
            mTargetDescriptions = loadDescriptions(mTargetDescriptionsResourceId);
            if (mTargetDrawables.size() != mTargetDescriptions.size()) {
            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.");
                        + " equal to the number of target descriptions.");
                return null;
                return null;
            }
            }
@@ -1266,7 +1266,7 @@ public class GlowPadView extends View {
        if (mDirectionDescriptions == null || mDirectionDescriptions.isEmpty()) {
        if (mDirectionDescriptions == null || mDirectionDescriptions.isEmpty()) {
            mDirectionDescriptions = loadDescriptions(mDirectionDescriptionsResourceId);
            mDirectionDescriptions = loadDescriptions(mDirectionDescriptionsResourceId);
            if (mTargetDrawables.size() != mDirectionDescriptions.size()) {
            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.");
                        + " equal to the number of direction descriptions.");
                return null;
                return null;
            }
            }