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" >
|
<group android:id="@+id/menu_group_single_article" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/share_article"
|
android:id="@+id/headlines_share_article"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/share_article"/>
|
android:title="@string/share_article"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/article_link_copy"
|
android:id="@+id/headlines_article_link_copy"
|
||||||
android:showAsAction=""
|
android:showAsAction=""
|
||||||
android:title="@string/article_link_copy"/>
|
android:title="@string/article_link_copy"/>
|
||||||
<item
|
<item
|
||||||
|
@ -126,7 +126,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case R.id.article_link_copy:
|
case R.id.headlines_article_link_copy:
|
||||||
if (true) {
|
if (true) {
|
||||||
Article article = getArticleAtPosition(info.position);
|
Article article = getArticleAtPosition(info.position);
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
m_adapter.notifyDataSetChanged();
|
m_adapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case R.id.share_article:
|
case R.id.headlines_share_article:
|
||||||
if (true) {
|
if (true) {
|
||||||
Article article = getArticleAtPosition(info.position);
|
Article article = getArticleAtPosition(info.position);
|
||||||
if (article != null)
|
if (article != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user