From 6283e5052f634565b4be6d11ee060d58ff317d8d Mon Sep 17 00:00:00 2001 From: santimunin Date: Mon, 14 May 2012 11:59:53 +0000 Subject: [PATCH] =?UTF-8?q?2012-05-12=20Santiago=20Mun=C3=ADn=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Licenses and javadoc comments added to all files, refactorized code. * Main.java: fixed a bug which was making the app crash when "Reset" button was clicked. * res/drawable-ldpi/help.png, res/drawable-ldpi/cross.png, res/drawable-ldpi/ok.png, res/values/styles.xml: Added in order to build the new notification options' UI. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- extras/pandroid_event_viewer/.classpath | 3 +- .../pandroid_event_viewer/AndroidManifest.xml | 99 +- extras/pandroid_event_viewer/ChangeLog | 23 +- .../res/drawable-ldpi/cross.png | Bin 0 -> 2247 bytes .../res/drawable-ldpi/help.png | Bin 0 -> 2168 bytes .../res/drawable-ldpi/ok.png | Bin 0 -> 1514 bytes .../pandroid_event_viewer/res/layout/main.xml | 300 +++-- .../res/layout/options.xml | 267 +++-- .../res/values/strings.xml | 11 +- .../res/values/styles.xml | 31 + .../pandorafms/About.java | 76 +- .../pandorafms/AlarmReceiver.java | 523 +++++---- .../pandorafms/Core.java | 259 ++--- .../pandorafms/EventList.java | 1019 +++++++++-------- .../pandorafms/EventListItem.java | 26 +- .../pandorafms/Info.java | 38 +- .../pandorafms/Main.java | 434 +++---- .../pandorafms/Options.java | 356 ++++-- .../PandroidEventviewerActivity.java | 892 ++++++++------- .../PandroidEventviewerService.java | 182 +-- .../pandorafms/PopupValidationEvent.java | 264 +++-- 21 files changed, 2715 insertions(+), 2088 deletions(-) create mode 100644 extras/pandroid_event_viewer/res/drawable-ldpi/cross.png create mode 100644 extras/pandroid_event_viewer/res/drawable-ldpi/help.png create mode 100644 extras/pandroid_event_viewer/res/drawable-ldpi/ok.png create mode 100644 extras/pandroid_event_viewer/res/values/styles.xml diff --git a/extras/pandroid_event_viewer/.classpath b/extras/pandroid_event_viewer/.classpath index 609aa00ebc..6aed2ebfbe 100644 --- a/extras/pandroid_event_viewer/.classpath +++ b/extras/pandroid_event_viewer/.classpath @@ -3,5 +3,6 @@ - + + diff --git a/extras/pandroid_event_viewer/AndroidManifest.xml b/extras/pandroid_event_viewer/AndroidManifest.xml index b4a47559f1..79a2572fc3 100644 --- a/extras/pandroid_event_viewer/AndroidManifest.xml +++ b/extras/pandroid_event_viewer/AndroidManifest.xml @@ -15,75 +15,78 @@ // GNU General Public License for more details. --> - + package="pandroid_event_viewer.pandorafms" + android:versionCode="2" + android:versionName="1.1" > + + + - + --> - + - + android:name=".PandroidEventviewerActivity" + android:configChanges="orientation|keyboardHidden" + android:label="Pandroid Event viewer" + android:theme="@android:style/Theme.NoTitleBar" > + + + android:name=".Main" + android:configChanges="orientation|keyboardHidden" > + android:name=".EventList" + android:configChanges="orientation|keyboardHidden" > - - + android:name=".Options" + android:configChanges="orientation|keyboardHidden" + android:label="@string/option_title_str" > + android:name=".About" + android:configChanges="orientation|keyboardHidden" + android:label="@string/pandroid_event_viewer_str" + android:theme="@android:style/Theme.Dialog" > - + - - - - + + + + + + + + + \ No newline at end of file diff --git a/extras/pandroid_event_viewer/ChangeLog b/extras/pandroid_event_viewer/ChangeLog index ecd7dacc07..3a0983392e 100644 --- a/extras/pandroid_event_viewer/ChangeLog +++ b/extras/pandroid_event_viewer/ChangeLog @@ -1,3 +1,22 @@ +2012-05-12 Santiago Munín + + * Licenses and javadoc comments added to all files, refactorized code. + + * Main.java: fixed a bug which was making the app crash when "Reset" button was clicked. + + * res/drawable-ldpi/help.png, + res/drawable-ldpi/cross.png, + res/drawable-ldpi/ok.png, + res/values/styles.xml: Added in order to build the new notification options' UI. + +2012-05-08 Santiago Munín + + * Options.java: Fixed a null pointer bug which was making the + app crash when accessing the options. + + * Main.java: Fixed a null pointer bug which crash at the beginning + of the app. + 2012-12-27 Miguel de Dios * AndroidManifest.xml, @@ -11,8 +30,6 @@ res/values/strings.xml,res/values-en/strings.xml, res/values-es/strings.xml,res/layout/info.xml: fixed some things and added more stability and a pretty splashscreen. - - MERGED FROM BRANCH 4.0.2 2012-04-25 Miguel de Dios @@ -22,8 +39,6 @@ combo group because sometimes this is as null. Fixes: #3495038 - - MERGED FROM BRANCH 4.0.2 2011-10-24 Miguel de Dios diff --git a/extras/pandroid_event_viewer/res/drawable-ldpi/cross.png b/extras/pandroid_event_viewer/res/drawable-ldpi/cross.png new file mode 100644 index 0000000000000000000000000000000000000000..22ae2a75259858b1ea5730a25a757d7b58873a9f GIT binary patch literal 2247 zcmV;&2srnNP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iye- z4jLl_6cDWd00>7(L_t(o!|j;)Z&cS6$G_*@_vX#!@qh4M zrZ51YWB1x{$F8-9<9mbKigRZg%R?=kJKYf6c4~L%aL4Y@`f>}rBRRFlHaxj=P4w); zk&}P_{${@LY)$`(t%2H=vaoRM#MVIV&^K!OKmNfM?rx8Eo~&E5u?YOTnyQj%S&6?5&RiI~l0ACpuM-y+`grsHHQPh$UBB3} z%U5f<1X6R76@xSaJWh@0(~3SkKRqz^N#?mHFW>wi-V{QtcWimd63t=6ddKjm9czOA zu=AxYwZ457eu3Gv0xJ+PSSe60r`Y2Zv?^ePvl*-5sY>UWmq*gK>{72?ABdW-Zmsj} zG@Sx78Of?(%Lu)8UqYk)}ySzbZa^fk4JDI>}VaiGS>*8G?1Zd@6SxjzUw#U8@+x} z2)(@V0T2T`F*&aVs&vI0T`d5xx=N^t$$1+FrR_jq3rxc|a!B5^dI7w*;x0S6E4ahA zTK`d?+GutAgpE|%IT&C;Acvs=0CIT+$zUp@k3!ZmGZGWm^PQ-Zx>;}@Bq2GQ#P z0PXhay4OCH9~~Tje|Ab9|NMHcKa;eeq#`L5lvFIG!onX*Mfto!I%6T7v5?Q(V@vgl zwn{2WCoN1|%k`y`^7tb|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?ZjoI} z0kfcM&}5{<#r#*8PDtfaDn13%xl}NVz7khA8T+c6jLpyOIy@KP3;SQ&zm^3l3Jto? QzyJUM07*qoM6N<$f+Z}t*#H0l literal 0 HcmV?d00001 diff --git a/extras/pandroid_event_viewer/res/layout/main.xml b/extras/pandroid_event_viewer/res/layout/main.xml index 7561211de3..0e140af472 100644 --- a/extras/pandroid_event_viewer/res/layout/main.xml +++ b/extras/pandroid_event_viewer/res/layout/main.xml @@ -14,166 +14,142 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. --> - - - - - - - - - - - - - - - - - - - - - - - - - - - -