refactoring is bad when you're dumb
This commit is contained in:
parent
6589f154c6
commit
6cb29c3889
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="263"
|
||||
android:versionCode="264"
|
||||
android:versionName="1.59" >
|
||||
|
||||
<uses-sdk
|
||||
|
@ -57,10 +57,11 @@ public class ArticleFragment extends Fragment {
|
||||
public void onCreateContextMenu(ContextMenu menu, View v,
|
||||
ContextMenuInfo menuInfo) {
|
||||
|
||||
if (v.getId() == R.id.content) {
|
||||
if (v.getId() == R.id.article_content) {
|
||||
HitTestResult result = ((WebView)v).getHitTestResult();
|
||||
|
||||
if (result != null && (result.getType() == HitTestResult.IMAGE_TYPE || result.getType() == HitTestResult.SRC_IMAGE_ANCHOR_TYPE)) {
|
||||
|
||||
menu.setHeaderTitle(result.getExtra());
|
||||
getActivity().getMenuInflater().inflate(R.menu.article_content_img_context_menu, menu);
|
||||
|
||||
|
@ -90,7 +90,7 @@ public class OfflineArticleFragment extends Fragment {
|
||||
|
||||
String title = m_cursor.getString(m_cursor.getColumnIndex("title"));
|
||||
|
||||
if (v.getId() == R.id.content) {
|
||||
if (v.getId() == R.id.article_content) {
|
||||
HitTestResult result = ((WebView)v).getHitTestResult();
|
||||
|
||||
if (result != null && (result.getType() == HitTestResult.IMAGE_TYPE || result.getType() == HitTestResult.SRC_IMAGE_ANCHOR_TYPE)) {
|
||||
|
Loading…
Reference in New Issue
Block a user