mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-02 21:03:02 +08:00
CB-7410 fix the menu test
Need to show the title in order for the options menu button to be visible.
This commit is contained in:
parent
07632b0eeb
commit
0cde8819cf
@ -33,7 +33,7 @@
|
||||
<h4>Deviceready: <span id="deviceready"> </span></h4>
|
||||
</div>
|
||||
<div id="info">
|
||||
<h4>The menu items should be:</h4>
|
||||
<h4>The options menu items should be:</h4>
|
||||
<li>Item1<br>
|
||||
<li>Item2<br>
|
||||
<li>Item3<br>
|
||||
|
@ -28,10 +28,12 @@ import android.view.ContextMenu.ContextMenuInfo;
|
||||
import org.apache.cordova.*;
|
||||
import org.apache.cordova.LOG;
|
||||
|
||||
public class menus extends DroidGap {
|
||||
public class menus extends CordovaActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
// need the title to be shown for the options menu to be visible
|
||||
preferences.set("showTitle", true);
|
||||
super.init();
|
||||
super.registerForContextMenu(super.appView);
|
||||
super.loadUrl("file:///android_asset/www/menus/index.html");
|
||||
|
Loading…
x
Reference in New Issue
Block a user