disable attachment icon in actionbar on tablets in portrait (screws with

other icons because android is so awesome)
This commit is contained in:
Andrew Dolgov 2013-07-11 09:22:12 +04:00
parent b3657d0fe3
commit 739d1c4abe
3 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="189"
android:versionName="1.8.9" >
android:versionCode="190"
android:versionName="1.8.10" >
<uses-sdk
android:minSdkVersion="8"

View File

@ -109,7 +109,7 @@
<item
android:id="@+id/toggle_attachments"
android:icon="@drawable/ic_menu_attaches_light"
android:showAsAction="ifRoom"
android:showAsAction=""
android:title="@string/attachments_prompt"/>
<item
android:id="@+id/share_article"

View File

@ -150,7 +150,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
if (af != null) {
if (af.getSelectedArticle() != null && af.getSelectedArticle().attachments != null && af.getSelectedArticle().attachments.size() > 0) {
if (!isCompatMode()) {
if (!isCompatMode() && (isSmallScreen() || !isPortrait())) {
m_menu.findItem(R.id.toggle_attachments).setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
}
m_menu.findItem(R.id.toggle_attachments).setVisible(true);