Skip to content

Commit

Permalink
Set complication data to null when largeImage is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirWrites committed Nov 27, 2021
1 parent 358c159 commit cf6c2b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wear/src/main/java/com/vlad1m1r/watchface/WatchFace.kt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class WatchFace : CanvasWatchFaceService() {
layouts.backgroundComplication.setComplicationData(data)
} else {
layouts.backgroundComplication.isVisible = false
layouts.backgroundComplication.setComplicationData(null)
}
} else {
layouts.complications.setComplicationData(watchFaceComplicationId, data)
Expand Down

0 comments on commit cf6c2b3

Please sign in to comment.