add check for requestCode
This commit is contained in:
parent
6dd1712cc8
commit
9f8c329e28
1 changed files with 2 additions and 1 deletions
|
@ -275,7 +275,8 @@ public class WikipediaDialogFragment extends WikiArticleBaseDialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
if (resultCode == WikipediaOptionsBottomSheetDialogFragment.SHOW_PICTURES_CHANGED_REQUEST_CODE) {
|
if (requestCode == WikipediaOptionsBottomSheetDialogFragment.REQUEST_CODE
|
||||||
|
&& resultCode == WikipediaOptionsBottomSheetDialogFragment.SHOW_PICTURES_CHANGED_REQUEST_CODE) {
|
||||||
updateWebSettings();
|
updateWebSettings();
|
||||||
populateArticle();
|
populateArticle();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue