fix crash in articlefragment context menu because of id collision
This commit is contained in:
parent
acb911e118
commit
83fa1ace29
@ -15,11 +15,11 @@
|
||||
|
||||
<group android:id="@+id/menu_group_single_article" >
|
||||
<item
|
||||
android:id="@+id/share_article"
|
||||
android:id="@+id/headlines_share_article"
|
||||
android:showAsAction=""
|
||||
android:title="@string/share_article"/>
|
||||
<item
|
||||
android:id="@+id/article_link_copy"
|
||||
android:id="@+id/headlines_article_link_copy"
|
||||
android:showAsAction=""
|
||||
android:title="@string/article_link_copy"/>
|
||||
<item
|
||||
|
@ -126,7 +126,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
}
|
||||
return true;
|
||||
|
||||
case R.id.article_link_copy:
|
||||
case R.id.headlines_article_link_copy:
|
||||
if (true) {
|
||||
Article article = getArticleAtPosition(info.position);
|
||||
|
||||
@ -198,7 +198,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
m_adapter.notifyDataSetChanged();
|
||||
}
|
||||
return true;
|
||||
case R.id.share_article:
|
||||
case R.id.headlines_share_article:
|
||||
if (true) {
|
||||
Article article = getArticleAtPosition(info.position);
|
||||
if (article != null)
|
||||
|
Loading…
Reference in New Issue
Block a user