fix crash in articlefragment context menu because of id collision

This commit is contained in:
Andrew Dolgov 2012-09-26 09:48:08 +04:00
parent acb911e118
commit 83fa1ace29
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)