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

Side by Side Diff: Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java

Issue 2961203002: Support library changes to allow a callback notifying the selection of default items for Browser Ac… (Closed)
Patch Set: Update based on Yusuf's comments and add new API. Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 package org.chromium.customtabsclient;
Yusuf 2017/07/07 21:36:35 copyright missing
ltian 2017/07/10 18:45:55 Done.
2
3 import android.content.BroadcastReceiver;
4 import android.content.Context;
5 import android.content.Intent;
6 import android.widget.Toast;
7
8 /**
9 * A {@link BroadcastReceiver} that handles the callback if default menu items a re chosen from Browser Actions.
10 */
11 public class BrowserActionsReceiver extends BroadcastReceiver {
12 @Override
13 public void onReceive(Context context, Intent intent) {
14 String toastMsg = "Chosen item Id: " + intent.getDataString();
15 Toast.makeText(context, toastMsg, Toast.LENGTH_SHORT).show();
16 }
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698