#20 Decompilation Errors

open
Swaroop Belur
5
2011-10-19
2011-10-19
Ricky
No

public boolean onKeyDown( int int16, android.view.KeyEvent aKeyEvent1)
{
boolean boolean1= null;
switch(int16)
{
default:
{
boolean1=super.onKeyDown(int16,aKeyEvent1);
while(true)
{
return boolean1;
}
case 4:
{
Intent JdecGenerated31 = new Intent(JdecGenerated31,this);
this.startActivity(boolean1);
this.finish();
boolean1=true;
}
}
}

besides missing a matching brace somewhere, the code should really look like this:

public boolean onKeyDown( int int16, android.view.KeyEvent aKeyEvent1)
{
boolean boolean1;

switch (int16) {
case 4:
this.startActivity(new Intent(this, TitleActivity));
this.finish();
boolean1 = true;
break;
default:
boolean1 = this.onKeyDown(int16,aKeyEvent1);
break;
}

return boolean1;
}

Discussion

  • Ricky
    Ricky
    2011-10-19

    Class File