Skip to content
This repository
Browse code

Added agenda entry point.

  • Loading branch information...
commit beaf99566be9d4cca7ce7600679a39e656e91836 1 parent acdc9c0
Henning Weiss hdweiss authored
3  AndroidManifest.xml
@@ -169,13 +169,14 @@
169 169 android:configChanges="orientation|keyboard">
170 170 <intent-filter>
171 171 <!-- Change this to be db- followed by your app key -->
172   - <data android:scheme="db-et6v9bbqd4pu0ak" />
  172 + <data android:scheme="db-2y6mph4a6httm78" />
173 173 <action android:name="android.intent.action.VIEW" />
174 174 <category android:name="android.intent.category.BROWSABLE"/>
175 175 <category android:name="android.intent.category.DEFAULT" />
176 176 </intent-filter>
177 177 </activity>
178 178 <service android:name=".Services.CalendarSyncService"></service>
  179 + <activity android:name=".Gui.Agenda.AgendaActivity"></activity>
179 180 </application>
180 181
181 182 </manifest>
8 res/layout/agenda.xml
... ... @@ -0,0 +1,8 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<fragment xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:name="com.matburt.mobileorg.Gui.Agenda.AgendasFragment"
  4 + android:layout_width="match_parent"
  5 + android:layout_height="match_parent"
  6 + android:tag="agenda_fragment" >
  7 +
  8 +</fragment>
8 res/menu/outline_menu.xml
@@ -2,6 +2,10 @@
2 2 <menu xmlns:android="http://schemas.android.com/apk/res/android" >
3 3
4 4 <item
  5 + android:id="@+id/menu_agenda"
  6 + android:icon="@drawable/ic_menu_agenda"
  7 + android:title="@string/menu_agenda"/>
  8 + <item
5 9 android:id="@+id/menu_outline"
6 10 android:icon="@drawable/ic_menu_agenda"
7 11 android:title="@string/menu_outline"/>
@@ -13,9 +17,9 @@
13 17 <item
14 18 android:id="@+id/menu_capturechild"
15 19 android:icon="@drawable/ic_menu_add"
16   - android:visible="true"
17 20 android:showAsAction="ifRoom"
18   - android:title="@string/menu_capture"/>
  21 + android:title="@string/menu_capture"
  22 + android:visible="true"/>
19 23 <item
20 24 android:id="@+id/menu_search"
21 25 android:icon="@drawable/ic_menu_search"
3  res/values/strings.xml
@@ -3,6 +3,7 @@
3 3
4 4 <string name="app_name">MobileOrgActivity</string>
5 5 <string name="menu_outline">Outline</string>
  6 + <string name="menu_agenda">Agenda</string>
6 7 <string name="menu_capture">Capture</string>
7 8 <string name="menu_capture_simple">Simple Capture</string>
8 9 <string name="menu_settings">Settings</string>
@@ -200,4 +201,4 @@
200 201 <string name="title_index_file_path">Full local path to index.org</string>
201 202 <string name="summary_web_url">Full URL path to your index.org file</string>
202 203
203   -</resources>
  204 +</resources>
15 src/com/matburt/mobileorg/Gui/Agenda/AgendaActivity.java
... ... @@ -0,0 +1,15 @@
  1 +package com.matburt.mobileorg.Gui.Agenda;
  2 +
  3 +import android.os.Bundle;
  4 +
  5 +import com.actionbarsherlock.app.SherlockFragmentActivity;
  6 +import com.matburt.mobileorg.R;
  7 +
  8 +public class AgendaActivity extends SherlockFragmentActivity {
  9 +
  10 + @Override
  11 + protected void onCreate(Bundle savedInstanceState) {
  12 + super.onCreate(savedInstanceState);
  13 + setContentView(R.layout.agenda);
  14 + }
  15 +}
8 src/com/matburt/mobileorg/Gui/Outline/OutlineActivity.java
@@ -17,6 +17,7 @@
17 17 import com.actionbarsherlock.view.MenuItem;
18 18 import com.actionbarsherlock.view.Window;
19 19 import com.matburt.mobileorg.R;
  20 +import com.matburt.mobileorg.Gui.Agenda.AgendaActivity;
20 21 import com.matburt.mobileorg.OrgData.OrgProviderUtils;
21 22 import com.matburt.mobileorg.Services.SyncService;
22 23 import com.matburt.mobileorg.Settings.SettingsActivity;
@@ -158,6 +159,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
158 159 runExpandableOutline(-1);
159 160 return true;
160 161
  162 + case R.id.menu_agenda:
  163 + runAgenda();
  164 + return true;
  165 +
161 166 case R.id.menu_capturechild:
162 167 OutlineActionMode.runCaptureActivity(listView.getCheckedNodeId(), this);
163 168 return true;
@@ -198,6 +203,9 @@ private void runExpandableOutline(long id) {
198 203 startActivity(intent);
199 204 }
200 205
  206 + private void runAgenda() {
  207 + startActivity(new Intent(this, AgendaActivity.class));
  208 + }
201 209
202 210 private boolean runSearch() {
203 211 return onSearchRequested();

0 comments on commit beaf995

Please sign in to comment.
Something went wrong with that request. Please try again.