如何在default后用if else
如何在default后用if else
日期:2022-04-02 13:43:13 人气:1
使用if判定之后,直接return; 不使用else。
修改之前的代码可能如下:
[java] view plain copy
01.static int resolveDialogTheme(Context context, int resid) {
02. if (resid == THEME_TRADITIONAL) {
03. ret
修改之前的代码可能如下:
[java] view plain copy
01.static int resolveDialogTheme(Context context, int resid) {
02. if (resid == THEME_TRADITIONAL) {
03. ret