|
|
@ -106,19 +106,24 @@ 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) {
|
|
|
|
switch (item.getGroupId()) {
|
|
|
|
try {
|
|
|
|
case R.id.group_style_size:
|
|
|
|
switch (item.getGroupId()) {
|
|
|
|
return setSize(item);
|
|
|
|
case R.id.group_style_size:
|
|
|
|
case R.id.group_style_color:
|
|
|
|
return setSize(item);
|
|
|
|
return setColor(item);
|
|
|
|
case R.id.group_style_color:
|
|
|
|
case R.id.group_style_list:
|
|
|
|
return setColor(item);
|
|
|
|
return setList(item);
|
|
|
|
case R.id.group_style_list:
|
|
|
|
case R.id.group_style_font:
|
|
|
|
return setList(item);
|
|
|
|
return setFont(item);
|
|
|
|
case R.id.group_style_font:
|
|
|
|
case R.id.group_style_clear:
|
|
|
|
return setFont(item);
|
|
|
|
return clear(item);
|
|
|
|
case R.id.group_style_clear:
|
|
|
|
default:
|
|
|
|
return clear(item);
|
|
|
|
return false;
|
|
|
|
default:
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|