Wear: fix direction arrow showing as emoticon
This commit is contained in:
parent
3a9352b825
commit
30d500fa75
|
@ -34,7 +34,7 @@ public class SgvComplication extends BaseComplicationProviderService {
|
|||
switch (dataType) {
|
||||
case ComplicationData.TYPE_SHORT_TEXT:
|
||||
final ComplicationData.Builder builder = new ComplicationData.Builder(ComplicationData.TYPE_SHORT_TEXT)
|
||||
.setShortText(ComplicationText.plainText(raw.sSgv + raw.sDirection))
|
||||
.setShortText(ComplicationText.plainText(raw.sSgv + raw.sDirection + "\uFE0E"))
|
||||
.setShortTitle(ComplicationText.plainText(displayFormat.shortTrend(raw)))
|
||||
.setTapAction(complicationPendingIntent);
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ public abstract class BaseWatchFace extends WatchFace implements SharedPreferenc
|
|||
|
||||
if (mDirection != null) {
|
||||
if (sharedPrefs.getBoolean("show_direction", true)) {
|
||||
mDirection.setText(rawData.sDirection);
|
||||
mDirection.setText(rawData.sDirection+"\uFE0E");
|
||||
mDirection.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mDirection.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in a new issue