|
|
|
|
@ -39,6 +39,12 @@ public class HistoryActivity extends BaseActivity implements HistoryAdapter.OnCl |
|
|
|
|
return mBinding = ActivityHistoryBinding.inflate(getLayoutInflater()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setSupportActionBar(@Nullable Toolbar toolbar) { |
|
|
|
|
super.setSupportActionBar(toolbar); |
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void initView(Bundle savedInstanceState) { |
|
|
|
|
setSupportActionBar(mBinding.toolbar); |
|
|
|
|
@ -46,12 +52,6 @@ public class HistoryActivity extends BaseActivity implements HistoryAdapter.OnCl |
|
|
|
|
getHistory(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setSupportActionBar(@Nullable Toolbar toolbar) { |
|
|
|
|
super.setSupportActionBar(toolbar); |
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setRecyclerView() { |
|
|
|
|
mBinding.recycler.setHasFixedSize(true); |
|
|
|
|
mBinding.recycler.setLayoutManager(new GridLayoutManager(this, Product.getColumn(this))); |
|
|
|
|
|