Commit 68aa9a59 authored by Wahyu Wibowo's avatar Wahyu Wibowo

update main

parent bea907b3
......@@ -100,7 +100,7 @@ public class MainActivity extends AppCompatActivity {
});
// binding.rvCategory.setLayoutManager(new LinearLayoutManager(MainActivity.this, LinearLayoutManager.HORIZONTAL, false));
// binding.rvProducts.setAdapter(adapter);
binding.rvProducts.setAdapter(adapter);
viewModel = new ViewModelProvider(this).get(ProductViewModel.class);
viewModel.getProducts().observe(this, adapter::setProducts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment