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