Luke Plant avatar Luke Plant committed 24a6c75

Contact menu item

Comments (0)

Files changed (3)

gen/net/learnscripture/webviewapp/R.java

         public static final int ic_launcher=0x7f020000;
     }
     public static final class id {
+        public static final int contact_menuitem=0x7f080006;
         public static final int dashboard_menuitem=0x7f080003;
         public static final int fullscreen_content_controls=0x7f080000;
         public static final int preferences_menuitem=0x7f080005;

res/menu/main_menu.xml

     <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>
+    <item android:id="@+id/contact_menuitem" android:title="Contact"></item>
 </menu>

src/net/learnscripture/webviewapp/Dashboard.java

 
 	public String BASE_URL = "http://learnscripture.net/";
 	public String DASHBOARD_URL = BASE_URL + "dashboard/";
+	public String CONTACT_URL = BASE_URL + "contact/";
 
 	private JavascriptInterface jsInterface;
 	
 			return true;
 		case R.id.preferences_menuitem:
 			getEngine().loadUrl("javascript: learnscripture.showPreferences()");
+			return true;
+		case R.id.contact_menuitem:
+			getEngine().loadUrl(CONTACT_URL);
+			return true;
 		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.