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

Commit 23654681 authored by Ned Burns's avatar Ned Burns
Browse files

Remove WTF logging for non-expandable swiped children

Having mixed views doesn't actually break anything.

Fixes: 135048434
Test: manual
Change-Id: I64a08dc257b8962cdde51e026c51eac02ab931e7
parent 18fff174
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import android.content.Context;
import android.graphics.Rect;
import android.os.Handler;
import android.service.notification.StatusBarNotification;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

@@ -313,8 +312,6 @@ class NotificationSwipeHelper extends SwipeHelper
    public void setTranslation(View v, float translate) {
        if (v instanceof ExpandableNotificationRow) {
            ((ExpandableNotificationRow) v).setTranslation(translate);
        } else {
            Log.wtf(TAG, "setTranslation should only be called on an ExpandableNotificationRow.");
        }
    }

@@ -324,7 +321,6 @@ class NotificationSwipeHelper extends SwipeHelper
            return ((ExpandableNotificationRow) v).getTranslation();
        }
        else {
            Log.wtf(TAG, "getTranslation should only be called on an ExpandableNotificationRow.");
            return 0f;
        }
    }