Android: Don't crash trying to hide toolbar in game.

This commit is contained in:
sigmabeta 2015-06-24 22:53:33 -04:00
parent 521f6e89c3
commit e970f757d0
1 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,5 @@
package org.dolphinemu.dolphinemu.activities;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
@ -69,12 +66,12 @@ public final class EmulationActivity extends AppCompatActivity
if (mSystemUiVisible)
{
getActionBar().show();
getSupportActionBar().show();
hideSystemUiAfterDelay();
}
else
{
getActionBar().hide();
getSupportActionBar().hide();
}
}
}