Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |