add onclick to refresh to top changed notice view
This commit is contained in:
parent
ce81a2f18c
commit
8d71936c89
@ -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="367"
|
||||
android:versionName="1.140" >
|
||||
android:versionCode="368"
|
||||
android:versionName="1.141" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="15"
|
||||
|
@ -687,6 +687,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
public ImageView textImage;
|
||||
public ImageView textChecked;
|
||||
public View headlineHeader;
|
||||
public View topChangedMessage;
|
||||
|
||||
public boolean flavorImageEmbedded;
|
||||
}
|
||||
@ -906,6 +907,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
holder.textImage = (ImageView) v.findViewById(R.id.text_image);
|
||||
holder.textChecked = (ImageView) v.findViewById(R.id.text_checked);
|
||||
holder.headlineHeader = v.findViewById(R.id.headline_header);
|
||||
holder.topChangedMessage = v.findViewById(R.id.headlines_row_top_changed);
|
||||
|
||||
v.setTag(holder);
|
||||
|
||||
@ -933,6 +935,15 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
});
|
||||
}
|
||||
|
||||
if (holder.topChangedMessage != null) {
|
||||
holder.topChangedMessage.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
refresh(false, true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (showFlavorImage && article.flavorImage == null) {
|
||||
|
||||
Elements imgs = article.articleDoc.select("img");
|
||||
|
Loading…
Reference in New Issue
Block a user