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

Commit 6e8f47b0 authored by Android Git Automerger's avatar Android Git Automerger
Browse files

Revert "Fix notification bar performance."

As per Dr. No; revert commit 0d7dc3b8.
parent 9ed30f93
Loading
Loading
Loading
Loading
+5 −9
Original line number Original line Diff line number Diff line
@@ -951,8 +951,7 @@ public class StatusBarService extends IStatusBar.Stub
        panelSlightlyVisible(true);
        panelSlightlyVisible(true);
        
        
        updateExpandedViewPos(EXPANDED_LEAVE_ALONE);
        updateExpandedViewPos(EXPANDED_LEAVE_ALONE);
        mExpandedParams.flags &= ~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
        mExpandedDialog.show();
        mExpandedDialog.getWindow().setAttributes(mExpandedParams);
        mExpandedView.requestFocus(View.FOCUS_FORWARD);
        mExpandedView.requestFocus(View.FOCUS_FORWARD);
        mTrackingView.setVisibility(View.VISIBLE);
        mTrackingView.setVisibility(View.VISIBLE);
        
        
@@ -1029,8 +1028,7 @@ public class StatusBarService extends IStatusBar.Stub
        }
        }
        mExpandedVisible = false;
        mExpandedVisible = false;
        panelSlightlyVisible(false);
        panelSlightlyVisible(false);
        mExpandedParams.flags |= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
        mExpandedDialog.hide();
        mExpandedDialog.getWindow().setAttributes(mExpandedParams);
        mTrackingView.setVisibility(View.GONE);
        mTrackingView.setVisibility(View.GONE);


        if ((mDisabled & StatusBarManager.DISABLE_NOTIFICATION_ICONS) == 0) {
        if ((mDisabled & StatusBarManager.DISABLE_NOTIFICATION_ICONS) == 0) {
@@ -1059,7 +1057,6 @@ public class StatusBarService extends IStatusBar.Stub
            else if (mAnimY < mStatusBarView.getHeight()) {
            else if (mAnimY < mStatusBarView.getHeight()) {
                if (SPEW) Log.d(TAG, "Animation completed to collapsed state.");
                if (SPEW) Log.d(TAG, "Animation completed to collapsed state.");
                mAnimating = false;
                mAnimating = false;
                updateExpandedViewPos(0);
                performCollapse();
                performCollapse();
            }
            }
            else {
            else {
@@ -1512,19 +1509,17 @@ public class StatusBarService extends IStatusBar.Stub
            }
            }
        }
        }


        final int disph = mDisplay.getHeight();
        lp = mExpandedDialog.getWindow().getAttributes();
        lp = mExpandedDialog.getWindow().getAttributes();
        lp.width = ViewGroup.LayoutParams.FILL_PARENT;
        lp.width = ViewGroup.LayoutParams.FILL_PARENT;
        lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
        lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
        lp.x = 0;
        lp.x = 0;
        mTrackingPosition = lp.y = -disph; // sufficiently large negative
        lp.y = 0;
        lp.type = WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
        lp.type = WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
        lp.flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
        lp.flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
                | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
                | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
                | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
                | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
                | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
                | WindowManager.LayoutParams.FLAG_DITHER
                | WindowManager.LayoutParams.FLAG_DITHER;
                | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
        lp.format = pixelFormat;
        lp.format = pixelFormat;
        lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL;
        lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL;
        lp.setTitle("StatusBarExpanded");
        lp.setTitle("StatusBarExpanded");
@@ -1537,6 +1532,7 @@ public class StatusBarService extends IStatusBar.Stub
                new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
                new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
                                           ViewGroup.LayoutParams.WRAP_CONTENT));
                                           ViewGroup.LayoutParams.WRAP_CONTENT));
        mExpandedDialog.show();
        mExpandedDialog.show();
        mExpandedDialog.hide();
        FrameLayout hack = (FrameLayout)mExpandedView.getParent();
        FrameLayout hack = (FrameLayout)mExpandedView.getParent();
        hack.setForeground(null);
        hack.setForeground(null);
    }
    }
+2 −0
Original line number Original line Diff line number Diff line
@@ -55,6 +55,8 @@ public class TrackingPatternView extends View {
        final int textureWidth = mTextureWidth;
        final int textureWidth = mTextureWidth;
        final int textureHeight = mTextureHeight;
        final int textureHeight = mTextureHeight;


        Log.d("TrackingPatternView", "width=" + width + " textureWidth=" + textureWidth);

        int x = 0;
        int x = 0;
        int y;
        int y;