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

Unified Diff: sky/apk/demo/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
« no previous file with comments | « sky/apk/demo/README.md ('k') | sky/apk/demo/org/domokit/sky/demo/SkyDemoApplication.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
diff --git a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java b/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
deleted file mode 100644
index 93ce9f73e45c7fe1a2d9047521fda28657159204..0000000000000000000000000000000000000000
--- a/sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.domokit.sky.demo;
-
-import android.content.Intent;
-
-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)) {
- return;
- }
- loadUrl(intent.getDataString());
- return;
- }
-
- super.onSkyReady();
- }
-}
« no previous file with comments | « sky/apk/demo/README.md ('k') | sky/apk/demo/org/domokit/sky/demo/SkyDemoApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698