Fossil Hybrid HR: Display caller name instead of number, when known

This commit is contained in:
Andreas Shimokawa 2020-02-16 23:05:21 +01:00
parent 6a30c2fa6f
commit a90e8de040

View File

@ -451,7 +451,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
@Override
public void onSetCallState(CallSpec callSpec) {
super.onSetCallState(callSpec);
queueWrite(new PlayCallNotificationRequest(callSpec.number, callSpec.command == CallSpec.CALL_INCOMING, this));
queueWrite(new PlayCallNotificationRequest(StringUtils.getFirstOf(callSpec.name, callSpec.number), callSpec.command == CallSpec.CALL_INCOMING, this));
}
// this method is based on the one from AppMessageHandlerYWeather.java