Commits

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);
 		}