Permalink
Browse files

Added agenda entry point.

  • Loading branch information...
1 parent acdc9c0 commit beaf99566be9d4cca7ce7600679a39e656e91836 @hdweiss hdweiss committed Dec 9, 2012
View
3 AndroidManifest.xml
@@ -169,13 +169,14 @@
android:configChanges="orientation|keyboard">
<intent-filter>
<!-- Change this to be db- followed by your app key -->
- <data android:scheme="db-et6v9bbqd4pu0ak" />
+ <data android:scheme="db-2y6mph4a6httm78" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service android:name=".Services.CalendarSyncService"></service>
+ <activity android:name=".Gui.Agenda.AgendaActivity"></activity>
</application>
</manifest>
View
8 res/layout/agenda.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<fragment xmlns:android="http://schemas.android.com/apk/res/android"
+ android:name="com.matburt.mobileorg.Gui.Agenda.AgendasFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:tag="agenda_fragment" >
+
+</fragment>
View
8 res/menu/outline_menu.xml
@@ -2,6 +2,10 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
+ android:id="@+id/menu_agenda"
+ android:icon="@drawable/ic_menu_agenda"
+ android:title="@string/menu_agenda"/>
+ <item
android:id="@+id/menu_outline"
android:icon="@drawable/ic_menu_agenda"
android:title="@string/menu_outline"/>
@@ -13,9 +17,9 @@
<item
android:id="@+id/menu_capturechild"
android:icon="@drawable/ic_menu_add"
- android:visible="true"
android:showAsAction="ifRoom"
- android:title="@string/menu_capture"/>
+ android:title="@string/menu_capture"
+ android:visible="true"/>
<item
android:id="@+id/menu_search"
android:icon="@drawable/ic_menu_search"
View
3 res/values/strings.xml
@@ -3,6 +3,7 @@
<string name="app_name">MobileOrgActivity</string>
<string name="menu_outline">Outline</string>
+ <string name="menu_agenda">Agenda</string>
<string name="menu_capture">Capture</string>
<string name="menu_capture_simple">Simple Capture</string>
<string name="menu_settings">Settings</string>
@@ -200,4 +201,4 @@
<string name="title_index_file_path">Full local path to index.org</string>
<string name="summary_web_url">Full URL path to your index.org file</string>
-</resources>
+</resources>
View
15 src/com/matburt/mobileorg/Gui/Agenda/AgendaActivity.java
@@ -0,0 +1,15 @@
+package com.matburt.mobileorg.Gui.Agenda;
+
+import android.os.Bundle;
+
+import com.actionbarsherlock.app.SherlockFragmentActivity;
+import com.matburt.mobileorg.R;
+
+public class AgendaActivity extends SherlockFragmentActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.agenda);
+ }
+}
View
8 src/com/matburt/mobileorg/Gui/Outline/OutlineActivity.java
@@ -17,6 +17,7 @@
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import com.matburt.mobileorg.R;
+import com.matburt.mobileorg.Gui.Agenda.AgendaActivity;
import com.matburt.mobileorg.OrgData.OrgProviderUtils;
import com.matburt.mobileorg.Services.SyncService;
import com.matburt.mobileorg.Settings.SettingsActivity;
@@ -158,6 +159,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
runExpandableOutline(-1);
return true;
+ case R.id.menu_agenda:
+ runAgenda();
+ return true;
+
case R.id.menu_capturechild:
OutlineActionMode.runCaptureActivity(listView.getCheckedNodeId(), this);
return true;
@@ -198,6 +203,9 @@ private void runExpandableOutline(long id) {
startActivity(intent);
}
+ private void runAgenda() {
+ startActivity(new Intent(this, AgendaActivity.class));
+ }
private boolean runSearch() {
return onSearchRequested();

0 comments on commit beaf995

Please sign in to comment.