Commits

Luke Plant  committed 4f1a05c

Added 'Preferences' menu item

  • Participants
  • Parent commits 04121f6

Comments (0)

Files changed (3)

File gen/net/learnscripture/webviewapp/R.java

     public static final class id {
         public static final int dashboard_menuitem=0x7f080003;
         public static final int fullscreen_content_controls=0x7f080000;
+        public static final int preferences_menuitem=0x7f080005;
         public static final int progressbar=0x7f080001;
         public static final int refresh_menuitem=0x7f080004;
         public static final int web_engine=0x7f080002;

File res/menu/main_menu.xml

 <menu xmlns:android="http://schemas.android.com/apk/res/android" >
     <item android:id="@+id/dashboard_menuitem" android:title="Dashboard"></item>
     <item android:id="@+id/refresh_menuitem" android:title="Refresh"></item>
-    
-
+    <item android:id="@+id/preferences_menuitem" android:title="Preferences"></item>
 </menu>

File src/net/learnscripture/webviewapp/Dashboard.java

 		case R.id.refresh_menuitem:
 			getEngine().reload();
 			return true;
+		case R.id.preferences_menuitem:
+			getEngine().loadUrl("javascript: $('.preferences-link').click()");
 		default:
 			return super.onOptionsItemSelected(item);
 		}