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

Commit 5849c0e4 authored by Ricardo Cervera's avatar Ricardo Cervera Committed by android-build-merger
Browse files

am 9a19ed17: am eec6dd77: am a87f3555: am d8bd117c: Merge "docs: Add parent...

am 9a19ed17: am eec6dd77: am a87f3555: am d8bd117c: Merge "docs: Add parent calls to WatchFaces snippet." into lmp-docs
automerge: cb09d8d0

* commit 'cb09d8d0':
  docs: Add parent calls to WatchFaces snippet.
parents 00c85656 cb09d8d0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -164,21 +164,25 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService {

        @Override
        public void onCreate(SurfaceHolder holder) {
            super.onCreate(holder);
            /* initialize your watch face */
        }

        @Override
        public void onPropertiesChanged(Bundle properties) {
            super.onPropertiesChanged(properties);
            /* get device features (burn-in, low-bit ambient) */
        }

        @Override
        public void onTimeTick() {
            super.onTimeTick();
            /* the time changed */
        }

        @Override
        public void onAmbientModeChanged(boolean inAmbientMode) {
            super.onAmbientModeChanged(inAmbientMode);
            /* the wearable switched between modes */
        }

@@ -189,6 +193,7 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService {

        @Override
        public void onVisibilityChanged(boolean visible) {
            super.onVisibilityChanged(visible);
            /* the watch face became visible or invisible */
        }
    }