Commits

Luke Plant committed 4f1a05c

Added 'Preferences' menu item

Comments (0)

Files changed (3)

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;

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>

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);
 		}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.