@Test public void onCreate() { assertNotNull(h.mAdaptor); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_history); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setTitle("Mood History"); historyView = findViewById(R.id.moodRecyclerView); historyView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); historyView.setAdapter(createAdaptor()); }
History extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_history); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setTitle("Mood History"); historyView = findViewById(R.id.moodRecyclerView); historyView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); historyView.setAdapter(createAdaptor()); } }
History extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_history); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setTitle("Mood History"); historyView = findViewById(R.id.moodRecyclerView); historyView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); historyView.setAdapter(createAdaptor()); }  }
History extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_history); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setTitle("Mood History"); historyView = findViewById(R.id.moodRecyclerView); historyView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); historyView.setAdapter(createAdaptor()); }  @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); }
History extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_history); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setTitle("Mood History"); historyView = findViewById(R.id.moodRecyclerView); historyView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); historyView.setAdapter(createAdaptor()); }  @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item);  }