diff options
| author | 2015-01-12 21:59:33 +0000 | |
|---|---|---|
| committer | 2015-01-12 21:59:33 +0000 | |
| commit | eec6dd779ca170a80ff457828e2687da834d2c1f (patch) | |
| tree | 62b3f32a3e01cd860668344c1767c6021ce2515f | |
| parent | 0bb84bb5e2a137475718e31fb25f06b160163588 (diff) | |
| parent | a87f35555d4aca13902a334691815cfa462feb30 (diff) | |
am a87f3555: am d8bd117c: Merge "docs: Add parent calls to WatchFaces snippet." into lmp-docs
* commit 'a87f35555d4aca13902a334691815cfa462feb30':
docs: Add parent calls to WatchFaces snippet.
| -rw-r--r-- | docs/html/training/wearables/watch-faces/service.jd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/html/training/wearables/watch-faces/service.jd b/docs/html/training/wearables/watch-faces/service.jd index 87ebefa91aac..77c417feefd5 100644 --- a/docs/html/training/wearables/watch-faces/service.jd +++ b/docs/html/training/wearables/watch-faces/service.jd @@ -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 */ } } |