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

Unified Diff: sky/sdk/home.dart

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/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java ('k') | sky/services/intents/intents.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/home.dart
diff --git a/sky/sdk/home.dart b/sky/sdk/home.dart
index c3c37f2a964c389d5fd012f9ad0e0941c5c42569..782648134b5a67588371760e19e3c3dac7f6d551 100644
--- a/sky/sdk/home.dart
+++ b/sky/sdk/home.dart
@@ -21,11 +21,14 @@ import 'package:sky/widgets/tool_bar.dart';
void launch(String relativeUrl) {
Uri url = Uri.base.resolve(relativeUrl);
- url = url.replace(scheme: 'sky');
ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
+ ComponentName component = new ComponentName()
+ ..packageName = 'org.domokit.sky.demo'
+ ..className = 'org.domokit.sky.demo.SkyDemoActivity';
Intent intent = new Intent()
..action = 'android.intent.action.VIEW'
+ ..component = component
..url = url.toString();
shell.requestService(null, activityManager);
activityManager.ptr.startActivity(intent);
« no previous file with comments | « sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java ('k') | sky/services/intents/intents.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698