From 0bf15552bc0353f83d3cb1fa36695f269ca4160f Mon Sep 17 00:00:00 2001 From: Rancor Date: Wed, 11 Mar 2015 13:09:57 +0100 Subject: [PATCH] CurrentWidget: Update to 0.4a (46) --- metadata/com.manor.currentwidget.txt | 17 ++++++++ .../com.manor.currentwidget/rm_one_plus.patch | 39 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 metadata/com.manor.currentwidget/rm_one_plus.patch diff --git a/metadata/com.manor.currentwidget.txt b/metadata/com.manor.currentwidget.txt index df6be4788a..49ea0bfb00 100644 --- a/metadata/com.manor.currentwidget.txt +++ b/metadata/com.manor.currentwidget.txt @@ -72,6 +72,23 @@ Build:0.39a,39 disable=Proprietary dependencies just so you can 'rate' the widget!? commit=290 +Build:0.4a,46 + commit=310 + subdir=CurrentWidget + target=android-19 + extlibs=android/android-support-v4.jar + srclibs=AChartEngine@r534,DashClock@d043bbca9ca7,Color-Picker-2@61a1f01e404b + rm=CurrentWidgetLibrary/libs/*,CurrentWidgetLibrary/src/com/manor/currentwidget/library/PlusOnePreference.java + prebuild=mv libs/android-support-v4.jar ../CurrentWidgetLibrary/libs/ && \ + printf "android.library=true\ntarget=19\nandroid.library.reference.1=$$Color-Picker-2$$" > ../CurrentWidgetLibrary/project.properties && \ + cp -R $$DashClock$$/api/src/main/java/* ../CurrentWidgetLibrary/src/ && \ + cp -R $$DashClock$$/api/src/main/aidl/* ../CurrentWidgetLibrary/src/ && \ + mkdir -p src/ + update=.,../CurrentWidgetLibrary + patch=rm_one_plus.patch + build=pushd $$AChartEngine$$ && $$MVN3$$ package && popd && \ + cp $$AChartEngine$$/target/achartengine-1.1.0.jar ../CurrentWidgetLibrary/libs + Auto Update Mode:None Update Check Mode:RepoManifest Current Version:0.4a diff --git a/metadata/com.manor.currentwidget/rm_one_plus.patch b/metadata/com.manor.currentwidget/rm_one_plus.patch new file mode 100644 index 0000000000..963b50ed7f --- /dev/null +++ b/metadata/com.manor.currentwidget/rm_one_plus.patch @@ -0,0 +1,39 @@ +diff --git a/CurrentWidgetLibrary/res/xml/prefs.xml b/CurrentWidgetLibrary/res/xml/prefs.xml +index fb7bb6a..6036b47 100644 +--- a/CurrentWidgetLibrary/res/xml/prefs.xml ++++ b/CurrentWidgetLibrary/res/xml/prefs.xml +@@ -220,12 +220,6 @@ + + + +- +- + + + +- +\ No newline at end of file ++ +diff --git a/CurrentWidgetLibrary/src/com/manor/currentwidget/library/CurrentWidgetConfigure.java b/CurrentWidgetLibrary/src/com/manor/currentwidget/library/CurrentWidgetConfigure.java +index da0c85f..897ed60 100644 +--- a/CurrentWidgetLibrary/src/com/manor/currentwidget/library/CurrentWidgetConfigure.java ++++ b/CurrentWidgetLibrary/src/com/manor/currentwidget/library/CurrentWidgetConfigure.java +@@ -92,10 +92,6 @@ public class CurrentWidgetConfigure extends PreferenceActivity implements + super.onResume(); + getPreferenceScreen().getSharedPreferences() + .registerOnSharedPreferenceChangeListener(this); +- PlusOnePreference p = ((PlusOnePreference)findPreference("rate")); +- if (p != null) { +- p.Initialize(); +- } + } + + @SuppressWarnings("deprecation")