use of com.moro.mtweaks.views.recyclerview.ButtonView2 in project MTweaks-KernelAdiutorMOD by morogoku.
the class ScreenFragment method restoreValuesInit.
private void restoreValuesInit(List<RecyclerViewItem> items) {
ButtonView2 bv = new ButtonView2();
bv.setSummary(getString(R.string.restore_summary));
bv.setButtonText(getString(R.string.restore_button));
bv.setOnItemClickListener(new ButtonView2.OnItemClickListener() {
@Override
public void onClick(RecyclerViewItem item) {
Calibration.restoreCalibrationStockValues(getActivity());
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.replace(R.id.content_frame, new ScreenFragment()).commit();
}
});
items.add(bv);
}
Aggregations