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

Commit d046b5f8 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

fix(androidprv): Fix androidprv attr not accessable through xml

parent 95597a36
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
-->
<com.android.quickstep.views.SplitInstructionsView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/split_instructions_background"
@@ -30,6 +29,5 @@
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:gravity="center"
        android:textColor="?androidprv:attr/textColorOnAccent"
        android:text="@string/toast_split_select_app" />
</com.android.quickstep.views.SplitInstructionsView>
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import androidx.appcompat.widget.AppCompatTextView;

import com.android.launcher3.R;
import com.android.launcher3.statemanager.StatefulActivity;
import com.android.launcher3.util.Themes;

/**
 * A rounded rectangular component containing a single TextView.
@@ -76,6 +77,10 @@ public class SplitInstructionsView extends FrameLayout {

        splitInstructionsView.mTextView = splitInstructionsView.findViewById(
                R.id.split_instructions_text);
        splitInstructionsView.mTextView.setTextColor(
                Themes.getAttrColor(
                        launcher, com.android.internal.R.attr.textColorOnAccent)
        );

        // Since textview overlays base view, and we sometimes manipulate the alpha of each
        // simultaneously, force overlapping rendering to false prevents redrawing of pixels,