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

Commit 9fb43d8e authored by Steve Kondik's avatar Steve Kondik
Browse files

systemui: Fix layout after conversion to LinearLayout

Change-Id: Ie033f95a8d8e1c391ecaf5df13d856b1858698cf
parent 11199987
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -56,7 +56,6 @@
            android:id="@+id/exp_power_stat"
            android:layout_width="match_parent"
            android:layout_height="@dimen/notification_panel_widget_height"
            android:layout_marginTop="44dip"
        />

        <TextView
@@ -74,8 +73,7 @@
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fadingEdge="none"
            android:overScrollMode="ifContentScrolls"
            android:layout_marginTop="@dimen/notification_panel_header_and_widget"
            android:overScrollMode="always"
            >
            <com.android.systemui.statusbar.policy.NotificationRowLayout
                android:id="@+id/latestItems"
+0 −4
Original line number Diff line number Diff line
@@ -357,13 +357,9 @@ public class PowerWidget extends FrameLayout {
        // now check if we need to display the widget still
        boolean displayPowerWidget = Settings.System.getInt(mContext.getContentResolver(),
                   Settings.System.EXPANDED_VIEW_WIDGET, 1) == 1;
        View notifScroll = ((ViewGroup) getParent()).findViewById(R.id.scroll);
        MarginLayoutParams param = (MarginLayoutParams) notifScroll.getLayoutParams();
        if(!displayPowerWidget) {
            param.topMargin = (int) getResources().getDimension(R.dimen.notification_panel_header_height);
            setVisibility(View.GONE);
        } else {
            param.topMargin = (int) getResources().getDimension(R.dimen.notification_panel_header_and_widget);
            setVisibility(View.VISIBLE);
        }
    }