This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends Activity { | |
Application application = (Application) MyApplication.getStaticContext(); | |
MyApplication app = (MyApplication) application; | |
Database database; | |
RecyclerView mRecyclerView; | |
MyTaskListAdapter mTaskListAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyTaskListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { | |
OnItemClickListener mItemClickListener; | |
Context context; | |
List<Task> dataSet; | |
Database database; | |
public MyTaskListAdapter(Context context, List<Task> dataSet, Database database) { | |
this.context = context; |