Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: sky/shell/android/org/domokit/sky/shell/SkyActivity.java

Issue 1221123003: SkyDemo should use explicit intents (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/services/intents/src/org/domokit/intents/ActivityManagerImpl.java ('k') | sky/tools/shelldb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/android/org/domokit/sky/shell/SkyActivity.java
diff --git a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
index 84a08af0672fb1ef10e6b597abd4cde2d1d1d246..0724ebf9a1d4efcfafaafdb4538ff2ce4af1f106 100644
--- a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
+++ b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java
@@ -41,7 +41,7 @@ public class SkyActivity extends Activity {
setContentView(mView);
mTracingController = new TracingController(this);
- loadSnapshotIfAvailable();
+ onSkyReady();
}
/**
@@ -65,7 +65,10 @@ public class SkyActivity extends Activity {
super.onBackPressed();
}
- private void loadSnapshotIfAvailable() {
+ /**
+ * Override this function to customize startup behavior.
+ */
+ protected void onSkyReady() {
File dataDir = new File(PathUtils.getDataDirectory(this));
File snapshot = new File(dataDir, SkyApplication.SNAPSHOT);
if (snapshot.exists()) {
« no previous file with comments | « sky/services/intents/src/org/domokit/intents/ActivityManagerImpl.java ('k') | sky/tools/shelldb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698