disable attachment icon in actionbar on tablets in portrait (screws with
other icons because android is so awesome)
This commit is contained in:
parent
b3657d0fe3
commit
739d1c4abe
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user