Merge branch 'dev' of https://github.com/owncloud/News-Android-App into dev
This commit is contained in:
commit
16a76ae250
1 changed files with 5 additions and 2 deletions
|
@ -148,7 +148,9 @@ public class NewsReaderListFragment extends SherlockFragment implements OnCreate
|
|||
}
|
||||
|
||||
private boolean isTwoPaneMode() {
|
||||
return ((NewsReaderListActivity) getActivity()).ismTwoPane();
|
||||
if(getActivity() != null)
|
||||
return ((NewsReaderListActivity) getActivity()).ismTwoPane();
|
||||
return false;
|
||||
}
|
||||
|
||||
public void StartSync()
|
||||
|
@ -319,7 +321,8 @@ public class NewsReaderListFragment extends SherlockFragment implements OnCreate
|
|||
lvAdapter.ReloadAdapter();
|
||||
|
||||
NewsReaderListActivity nlActivity = (NewsReaderListActivity) getActivity();
|
||||
nlActivity.UpdateItemList();
|
||||
if(nlActivity != null)
|
||||
nlActivity.UpdateItemList();
|
||||
|
||||
|
||||
Log.d(TAG, "onAsyncTask_GetItems Finished");
|
||||
|
|
Loading…
Reference in a new issue