summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ricardo Cervera <rcervera@google.com> 2015-01-12 21:59:33 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-01-12 21:59:33 +0000
commiteec6dd779ca170a80ff457828e2687da834d2c1f (patch)
tree62b3f32a3e01cd860668344c1767c6021ce2515f
parent0bb84bb5e2a137475718e31fb25f06b160163588 (diff)
parenta87f35555d4aca13902a334691815cfa462feb30 (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.jd5
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 {
&#64;Override
public void onCreate(SurfaceHolder holder) {
+ super.onCreate(holder);
/* initialize your watch face */
}
&#64;Override
public void onPropertiesChanged(Bundle properties) {
+ super.onPropertiesChanged(properties);
/* get device features (burn-in, low-bit ambient) */
}
&#64;Override
public void onTimeTick() {
+ super.onTimeTick();
/* the time changed */
}
&#64;Override
public void onAmbientModeChanged(boolean inAmbientMode) {
+ super.onAmbientModeChanged(inAmbientMode);
/* the wearable switched between modes */
}
@@ -189,6 +193,7 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService {
&#64;Override
public void onVisibilityChanged(boolean visible) {
+ super.onVisibilityChanged(visible);
/* the watch face became visible or invisible */
}
}