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

Commit fdc27604 authored by Yash Garg's avatar Yash Garg 💬 Committed by Sahil Sonar
Browse files

fix: set bubble text view center vertically



[SahilSonar - adapted to A14]

Signed-off-by: default avatarSahilSonar <sss.sonar2003@gmail.com>
parent 85c9eef7
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ class BlissInput(context: Context, attrs: AttributeSet) :
                setForceHideDot(true)
                setWidth(width / idp.numColumns)
                setTextColor(Color.WHITE)
                setCenterVertically(false)
                setPaddingRelative(padding, 0, padding, 0)
                setOnClickListener(appMonitor.launcher.itemOnClickListener)
            }
+1 −2
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
        mIsRtl = (getResources().getConfiguration().getLayoutDirection()
                == View.LAYOUT_DIRECTION_RTL);
        mDeviceProfile = mActivity.getDeviceProfile();
        mCenterVertically = a.getBoolean(R.styleable.BubbleTextView_centerVertically, false);
        mCenterVertically = a.getBoolean(R.styleable.BubbleTextView_centerVertically, MultiModeController.isSingleLayerMode());

        SharedPreferences prefs = LauncherPrefs.getPrefs(context.getApplicationContext());

@@ -289,7 +289,6 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
            mShouldShowLabel = prefs.getBoolean(KEY_SHOW_DESKTOP_LABELS, true);
        }


        mIconSize = a.getDimensionPixelSize(R.styleable.BubbleTextView_iconSizeOverride,
                defaultIconSize);
        a.recycle();