diff --git a/README b/README
index f4638435..576bca0b 100644
--- a/README
+++ b/README
@@ -1,3 +1,6 @@
Tiny Tiny RSS client for Android tablets
-Licensed under GNU GPL version 2.
\ No newline at end of file
+Uses several free android icons from http://www.androidicons.com/freebies.php
+
+Licensed under GNU GPL version 2.
+
diff --git a/res/drawable-hdpi/ic_menu_database.png b/res/drawable-hdpi/ic_menu_database.png
new file mode 100644
index 00000000..8f89ade5
Binary files /dev/null and b/res/drawable-hdpi/ic_menu_database.png differ
diff --git a/res/drawable-hdpi/ic_menu_exit.png b/res/drawable-hdpi/ic_menu_exit.png
new file mode 100644
index 00000000..8e5fab5f
Binary files /dev/null and b/res/drawable-hdpi/ic_menu_exit.png differ
diff --git a/res/drawable-hdpi/ic_menu_tick.png b/res/drawable-hdpi/ic_menu_tick.png
new file mode 100644
index 00000000..9691a11d
Binary files /dev/null and b/res/drawable-hdpi/ic_menu_tick.png differ
diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml
index 607dce2b..09a7050d 100644
--- a/res/menu/main_menu.xml
+++ b/res/menu/main_menu.xml
@@ -24,32 +24,34 @@
-
+ android:title="@string/load_more_articles"/> -->
+ android:title="@string/headlines_mark_as_read"/>
-
+ android:title="@string/show_all_articles"/> -->
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b7cc41be..82793a07 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -34,7 +34,7 @@
Refresh feeds
Close article
Share article
- Mark as read
+ Mark read
Sort feeds by unread count
Load more
Show all articles
@@ -70,7 +70,7 @@
No headlines to display
Browse categories like feeds
Use category context menu to override this setting
- Catchup
+ Mark read
No error
Error: Unknown error (see log)
Error: 401 unauthorized
diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java
index 73b6da4a..d205ce07 100644
--- a/src/org/fox/ttrss/HeadlinesFragment.java
+++ b/src/org/fox/ttrss/HeadlinesFragment.java
@@ -222,7 +222,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener {
ListView list = (ListView)getView().findViewById(R.id.headlines);
- if (list != null && m_offset != 0) {
+ if (list != null && m_offset != 0 && articles.size() > 0) {
list.setSelection(last_position-1);
}
diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java
index 370c441f..f51ef307 100644
--- a/src/org/fox/ttrss/MainActivity.java
+++ b/src/org/fox/ttrss/MainActivity.java
@@ -443,13 +443,13 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
item.setTitle(R.string.menu_unread_feeds);
}
- item = menu.findItem(R.id.show_all_articles);
+ /* item = menu.findItem(R.id.show_all_articles);
if (getUnreadArticlesOnly()) {
item.setTitle(R.string.show_all_articles);
} else {
item.setTitle(R.string.show_unread_articles);
- }
+ } */
return true;
}
@@ -588,28 +588,30 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
}
return true;
- case R.id.catchup_and_load:
+ case R.id.headlines_mark_as_read:
if (hf != null) {
- final ArticleList articles = hf.getUnreadArticles();
+ ArticleList articles = hf.getUnreadArticles();
+ for (Article a : articles)
+ a.unread = false;
+
ApiRequest req = new ApiRequest(getApplicationContext()) {
@Override
protected void onPostExecute(JsonElement result) {
if (result != null) {
- for (Article a : articles)
- a.unread = false;
-
viewFeed(m_activeFeed, true);
}
}
};
-
+
+ final String articleIds = articlesToIdString(articles);
+
@SuppressWarnings("serial")
HashMap map = new HashMap() {
{
put("sid", m_sessionId);
put("op", "updateArticle");
- put("article_ids", articlesToIdString(articles));
+ put("article_ids", articleIds);
put("mode", "0");
put("field", "2");
}
@@ -619,9 +621,6 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
}
return true;
- case R.id.load_more_articles:
- viewFeed(m_activeFeed, true);
- return true;
case R.id.share_article:
shareArticle(m_selectedArticle);
return true;
@@ -695,7 +694,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
}
return true;
- case R.id.show_all_articles:
+ /* case R.id.show_all_articles:
setUnreadArticlesOnly(!getUnreadArticlesOnly());
if (getUnreadArticlesOnly()) {
@@ -704,7 +703,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
item.setTitle(R.string.show_unread_articles);
}
- return true;
+ return true; */
default:
return super.onOptionsItemSelected(item);
}
@@ -754,8 +753,8 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
m_menu.setGroupVisible(R.id.menu_group_logged_out, false);
if (m_activeFeed != null) {
- m_menu.findItem(R.id.load_more_articles).setVisible(m_canLoadMore);
- m_menu.findItem(R.id.show_all_articles).setVisible(true);
+ //m_menu.findItem(R.id.load_more_articles).setVisible(m_canLoadMore);
+ //m_menu.findItem(R.id.show_all_articles).setVisible(true);
} else {
m_menu.setGroupVisible(R.id.menu_group_headlines, false);
m_menu.setGroupVisible(R.id.menu_group_headlines_selection, false);