set actions on headline header/flavor image as to make article opening easier if drawn above image
This commit is contained in:
parent
2bee76f0c9
commit
8c51de35ae
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="363"
|
android:versionCode="364"
|
||||||
android:versionName="1.136" >
|
android:versionName="1.137" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="15"
|
android:minSdkVersion="15"
|
||||||
|
@ -1099,6 +1099,29 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
holder.flavorVideoKindView.setVisibility(View.GONE);
|
holder.flavorVideoKindView.setVisibility(View.GONE);
|
||||||
holder.headlineHeader.setBackgroundDrawable(null);
|
holder.headlineHeader.setBackgroundDrawable(null);
|
||||||
|
|
||||||
|
holder.headlineHeader.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
|
@Override
|
||||||
|
public boolean onLongClick(View v) {
|
||||||
|
m_activity.openContextMenu(v);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
holder.headlineHeader.setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
m_listener.onArticleSelected(article);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
holder.flavorImageView.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
|
@Override
|
||||||
|
public boolean onLongClick(View v) {
|
||||||
|
m_activity.openContextMenu(v);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
boolean videoFound = false;
|
boolean videoFound = false;
|
||||||
|
|
||||||
if (showFlavorImage && article.articleDoc != null && holder.flavorVideoKindView != null) {
|
if (showFlavorImage && article.articleDoc != null && holder.flavorVideoKindView != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user