diff options
author | calderwoodra <calderwoodra@google.com> | 2018-02-08 12:29:19 -0800 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2018-02-09 17:37:25 -0800 |
commit | d402bbd03dfb06d88d1e95bddf899c10937042b0 (patch) | |
tree | 04398df78ae8477e09417a4f3bdc2b5a5f02cedb /java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java | |
parent | cd197916500d2681e89685913bbfbf35ed99a3bf (diff) |
Implemented GoogleMainSearchController to customize menu to GoogleDialer.
This change doesn't implement any of the menu actinos, it just abstracts some
components so that the GoogleDialer toolbar menu can show help and feedback
(and thus, AOSP won't).
Bug: 72526274
Test: implemented
PiperOrigin-RevId: 185033936
Change-Id: I30f8cde6705145ef95efcfc82973a8aa2b16e4ee
Diffstat (limited to 'java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java')
-rw-r--r-- | java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java b/java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java index f4dfeef23..3c6e3611d 100644 --- a/java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java +++ b/java/com/android/dialer/main/impl/toolbar/MainToolbarMenu.java @@ -22,18 +22,15 @@ import android.view.Gravity; import android.view.View; /** Popup menu accessible from the search bar */ -final class MainToolbarMenu extends PopupMenu { +public final class MainToolbarMenu extends PopupMenu { public MainToolbarMenu(Context context, View anchor) { - super(context, anchor, Gravity.TOP); - // TODO(calderwoodra): menu should open from the top, not the bottom + super(context, anchor, Gravity.NO_GRAVITY, R.attr.actionOverflowMenuStyle, 0); } @Override public void show() { super.show(); - // TODO(calderwoodra): show/hide clear frequents - // TODO(calderwoodra): only show call history item if we have phone permission // TODO(calderwoodra): show simulator buttons } } |