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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/HelpActivity.java

Issue 451543002: Android Chromoting: Use explicit intent for opening Feedback screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/HelpActivity.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/HelpActivity.java b/remoting/android/java/src/org/chromium/chromoting/HelpActivity.java
index 24fbd34aaf9e6d989b93f603765f189e653df143..faaa7b26306d29cee59a414deb59ce415a0fea3d 100644
--- a/remoting/android/java/src/org/chromium/chromoting/HelpActivity.java
+++ b/remoting/android/java/src/org/chromium/chromoting/HelpActivity.java
@@ -33,6 +33,11 @@ import org.chromium.ui.UiUtils;
public class HelpActivity extends Activity {
private static final String PLAY_STORE_URL = "market://details?id=";
+ private static final String FEEDBACK_PACKAGE = "com.google.android.gms";
+
+ private static final String FEEDBACK_CLASS =
+ "com.google.android.gms.feedback.LegacyBugReportService";
+
/**
* Maximum dimension for the screenshot to be sent to the Send Feedback handler. This size
* ensures the size of bitmap < 1MB, which is a requirement of the handler.
@@ -62,6 +67,12 @@ public class HelpActivity extends Activity {
private void sendFeedback() {
Intent intent = new Intent(Intent.ACTION_BUG_REPORT);
+ intent.setComponent(new ComponentName(FEEDBACK_PACKAGE, FEEDBACK_CLASS));
+ if (getPackageManager().resolveService(intent, 0) == null) {
+ Log.e("help", "Unable to resolve Feedback service.");
+ return;
+ }
+
ServiceConnection conn = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698