From a9fb3fe2e08f95272e508e01cfde224f0c25d19f Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Fri, 18 Mar 2011 21:38:55 +0100 Subject: [PATCH] add option to clear the log --- res/menu/options.xml | 4 ++++ res/values/strings.xml | 1 + src/APRSdroid.scala | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/res/menu/options.xml b/res/menu/options.xml index 50f60b5..32b7a03 100644 --- a/res/menu/options.xml +++ b/res/menu/options.xml @@ -3,6 +3,10 @@ android:title="@string/preferences" android:alphabeticShortcut="p" android:icon="@android:drawable/ic_menu_preferences" /> + About Show Map Show Log +Clear Log Quit Preferences diff --git a/src/APRSdroid.scala b/src/APRSdroid.scala index 78cd1b3..bfea917 100644 --- a/src/APRSdroid.scala +++ b/src/APRSdroid.scala @@ -174,6 +174,10 @@ class APRSdroid extends Activity with OnClickListener case R.id.preferences => startActivity(new Intent(this, classOf[PrefsAct])); true + case R.id.clear => + storage.trimPosts(System.currentTimeMillis) + postcursor.requery() + true case R.id.about => aboutDialog() true