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

Commit a8822178 authored by narinder Rana's avatar narinder Rana
Browse files

Move system icons to the left for lockScreen

parent 2a92ce8a
Loading
Loading
Loading
Loading
+26 −15
Original line number Diff line number Diff line
@@ -90,16 +90,27 @@
                    android:orientation="horizontal"
                    android:clipChildren="false"/>

                <com.android.keyguard.AlphaOptimizedLinearLayout
                    android:id="@+id/system_icon_area"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:orientation="horizontal"
                    android:gravity="center_vertical|start"
                    >

                    <include layout="@layout/system_icons" />
                </com.android.keyguard.AlphaOptimizedLinearLayout>
            </LinearLayout>
        </FrameLayout>

        <!-- Space should cover the notch (if it exists) and let other views lay out around it -->
        <android.widget.Space
            android:id="@+id/cutout_space_view"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:gravity="center_horizontal|center_vertical"
        />
<!--        <android.widget.Space-->
<!--            android:id="@+id/cutout_space_view"-->
<!--            android:layout_width="0dp"-->
<!--            android:layout_height="match_parent"-->
<!--            android:gravity="center_horizontal|center_vertical"-->
<!--        />-->

        <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
            android:id="@+id/centered_icon_area"
@@ -125,16 +136,16 @@

        </com.android.systemui.statusbar.LineageStatusBarItemHolder>

        <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:orientation="horizontal"
            android:gravity="center_vertical|end"
            >
<!--        <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area"-->
<!--            android:layout_width="0dp"-->
<!--            android:layout_height="match_parent"-->
<!--            android:layout_weight="1"-->
<!--            android:orientation="horizontal"-->
<!--            android:gravity="center_vertical|end"-->
<!--            >-->

            <include layout="@layout/system_icons" />
        </com.android.keyguard.AlphaOptimizedLinearLayout>
<!--            <include layout="@layout/system_icons" />-->
<!--        </com.android.keyguard.AlphaOptimizedLinearLayout>-->
    </LinearLayout>

    <com.android.keyguard.AlphaOptimizedLinearLayout
+1 −1
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
        }

        // Stole this from NotificationIconContainer. Not optimal but keeps the layout logic clean
        if (isLayoutRtl()) {
        if (!isLayoutRtl()) {
            for (int i = 0; i < childCount; i++) {
                View child = getChildAt(i);
                StatusIconState state = getViewStateFromChild(child);