Skip to content
Browse files

Use activity context instead of application context

  • Loading branch information...
1 parent 3a12bc7 commit b15c2f635f90ed1b7c9eacd7357d2a077c4847c7 @thest1 thest1 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/dushyanth/lazylistfragment/UserListFragment.java
View
2 src/com/dushyanth/lazylistfragment/UserListFragment.java
@@ -21,7 +21,7 @@ public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
getLoaderManager().initLoader(USER_LIST_LOADER, null, this);
- mAdapter = new UserListAdapter(getActivity().getApplicationContext(),
+ mAdapter = new UserListAdapter(getActivity(),
null, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);
setListAdapter(mAdapter);
}

0 comments on commit b15c2f6

Please sign in to comment.
Something went wrong with that request. Please try again.