+
+ if (BuildConfig.DEBUG) {
+ final MenuItem menuWipeProfileData = menu.findItem(R.id.menuWipeData);
+ menuWipeProfileData.setOnMenuItemClickListener(this::onWipeDataMenuClicked);
+ menuWipeProfileData.setVisible(mProfile != null);
+ }
+ }
+ private boolean onWipeDataMenuClicked(MenuItem item) {
+ // this is a development option, so no confirmation
+ mProfile.wipeAllData();
+ Data.profile.forceNotifyObservers();
+ return true;