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

Unified Diff: sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoActivity.java

Issue 1225883002: Make SkyDemo.apk start offline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
Index: sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoActivity.java
diff --git a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java b/sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoActivity.java
similarity index 78%
rename from sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
rename to sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoActivity.java
index 93ce9f73e45c7fe1a2d9047521fda28657159204..ad97c69be89bdbd990c90c6945649d8a9c0357e1 100644
--- a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
+++ b/sky/sdk/example/demo_launcher/apk/org/domokit/sky/demo/SkyDemoActivity.java
@@ -12,18 +12,11 @@ import org.domokit.sky.shell.SkyActivity;
* Main activity for SkyDemo.
*/
public class SkyDemoActivity extends SkyActivity {
- private static final String DEFAULT_URL = "https://domokit.github.io/example/demo_launcher/lib/main.dart";
-
@Override
protected void onSkyReady() {
Intent intent = getIntent();
String action = intent.getAction();
- if (Intent.ACTION_MAIN.equals(action)) {
- loadUrl(DEFAULT_URL);
- return;
- }
-
if (Intent.ACTION_VIEW.equals(action)) {
String bundleName = intent.getStringExtra("bundleName");
if (bundleName != null && loadBundleByName(bundleName)) {

Powered by Google App Engine
This is Rietveld 408576698