我在以下代码(片段)上遇到编译器错误。为什么这段代码不正确?一个解决方案
protected Dialog onCreateDialog(int paramInt)
{
switch (paramInt)
{
default:
case 0:
}
for (Object localObject = null; ; localObject = this.dialog)
{
return localObject; // here problem cast
this.dialog = new ProgressDialog(this);
this.dialog.setMessage(getResources().getString(2131165201));
this.dialog.setIndeterminate(true);
this.dialog.setCancelable(false);
}
}