@OnClick(R.id.clear) public void clearCache() { PreferenceHelper.storePortfolioItems(new ArrayList<PortfolioItem>(), this); }
@OnCheckedChanged(R.id.cached) public void toggleCache(CompoundButton toggle, boolean cache) { PreferenceHelper.setCacheEnabled(cache, this); }
public void onResume() { super.onResume(); cached.setChecked(PreferenceHelper.isCachedEnabled(this)); }