2012-03-15 14 views
0

私は次のコードセクションを持っています。どの方法が地方36の場所にあるはずですか?逆コンパイル済みコードの完成

public void Alert() 
    { 
    AlertDialog.Builder localBuilder1 = new AlertDialog.Builder(this); 
    AlertDialog.Builder localBuilder2 = localBuilder1.setMessage("You lost").setCancelable(false); 
    36 local36 = new DialogInterface.OnClickListener() 
    { 
     public void onClick(DialogInterface paramDialogInterface, int paramInt) 
     { 
     paramDialogInterface.cancel(); 
     Pokemon.this.setContentView(2130903046); 
     Pokemon.this.mainmenu(); 
     } 
    }; 
    AlertDialog.Builder localBuilder3 = localBuilder2.setPositiveButton("OK", local36); 
    AlertDialog localAlertDialog = localBuilder1.create(); 
    this.alert = localAlertDialog; 
    this.alert.show(); 
    } 
+0

... 'OnClickListener'は' 36'の代わりになります。それはあなたが意味することですか? –

答えて

4

私は元のコードは、このような何かを見ていることを期待:

AlertDialog.Builder localBuilder3 = 
    localBuilder2.setPositiveButton 
    (
    "OK", 
    new DialogInterface.OnClickListener() 
    { 
     public void onClick(DialogInterface paramDialogInterface, int paramInt) 
     { 
     paramDialogInterface.cancel(); 
     Pokemon.this.setContentView(2130903046); 
     Pokemon.this.mainmenu(); 
     } 
    } 
); 

ではなく、二つの別々のステートメントを有します。したがって36は元のコードには含まれていませんでした。それは匿名の内部クラスの名前を表します。

+0

素晴らしい感謝 - 私は隠されたクラスの方向に考えていたが、それがうまく動作する方法を理解できなかった。 – KDEx

関連する問題