Style helper failsafe

pull/184/head
M66B 4 years ago
parent 3cda3a3784
commit 993b30f4fa

@ -106,6 +106,7 @@ public class StyleHelper {
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
try {
switch (item.getGroupId()) {
case R.id.group_style_size:
return setSize(item);
@ -120,6 +121,10 @@ public class StyleHelper {
default:
return false;
}
} catch (Throwable ex) {
Log.e(ex);
return false;
}
}
private boolean setSize(MenuItem item) {

Loading…
Cancel
Save