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

Commit 2b61960b authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Better line breaks on the keyguard

BREAK_STRATEGY_BALANCED will try to keep the lines with similar
lengths. Which will look much better

Test: play music, look at AOD
Change-Id: Ie87cb5fd47f5258fafc4b1b50d51be52ad28ccfd
parent 9e3402dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.app.PendingIntent;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.text.LineBreaker;
import android.net.Uri;
import android.os.Trace;
import android.provider.Settings;
@@ -152,6 +153,7 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe
        mRowWithHeaderTextSize = mContext.getResources().getDimensionPixelSize(
                R.dimen.header_row_font_size);
        mTitle.setOnClickListener(this);
        mTitle.setBreakStrategy(LineBreaker.BREAK_STRATEGY_BALANCED);
    }

    @Override