From dbe686598068a714fa2e8c5de3f337a8ee729204 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 13 Feb 2015 01:08:38 +0300 Subject: [PATCH] widget: default to showing fresh articles instead of global unread --- org.fox.ttrss/src/main/AndroidManifest.xml | 4 ++-- .../java/org/fox/ttrss/widget/WidgetUpdateService.java | 7 +++++-- org.fox.ttrss/src/main/res/layout/widget_small.xml | 2 +- org.fox.ttrss/src/main/res/values/strings.xml | 2 ++ org.fox.ttrss/src/main/res/xml/preferences.xml | 7 +++++++ 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index 53651d68..bc2cee9f 100755 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="308" + android:versionName="1.88" > umap = new HashMap() { { put("op", "getUnread"); + put("feed_id", String.valueOf(feedId)); put("sid", fSessionId); } }; @@ -127,7 +130,7 @@ public class WidgetUpdateService extends Service { } catch (Exception e) { e.printStackTrace(); - view.setTextViewText(R.id.counter, getString(R.string.app_name)); + view.setTextViewText(R.id.counter, "?"); manager.updateAppWidget(thisWidget, view); } diff --git a/org.fox.ttrss/src/main/res/layout/widget_small.xml b/org.fox.ttrss/src/main/res/layout/widget_small.xml index 1242cef5..21620e87 100644 --- a/org.fox.ttrss/src/main/res/layout/widget_small.xml +++ b/org.fox.ttrss/src/main/res/layout/widget_small.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content" android:layout_gravity="bottom|center" android:gravity="center_horizontal" - android:text="123" + android:text="@string/app_name" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@android:color/primary_text_dark" android:textSize="13sp" /> diff --git a/org.fox.ttrss/src/main/res/values/strings.xml b/org.fox.ttrss/src/main/res/values/strings.xml index 86479ca2..177b331f 100755 --- a/org.fox.ttrss/src/main/res/values/strings.xml +++ b/org.fox.ttrss/src/main/res/values/strings.xml @@ -217,4 +217,6 @@ %1$s Build timestamp Unfortunately, Tiny Tiny RSS has stopped. Submit crash report to tt-rss.org? + Show Fresh articles + Instead of total unread display amount of Fresh articles diff --git a/org.fox.ttrss/src/main/res/xml/preferences.xml b/org.fox.ttrss/src/main/res/xml/preferences.xml index e4dfe5ab..3bc7225a 100755 --- a/org.fox.ttrss/src/main/res/xml/preferences.xml +++ b/org.fox.ttrss/src/main/res/xml/preferences.xml @@ -171,6 +171,13 @@ android:summary="@string/offline_image_cache_enabled_summary" android:title="@string/offline_image_cache_enabled" /> + + +