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