Merge pull request #2658 from sigmabeta/android-dont-crash

Android: Don't crash trying to hide toolbar in game.
This commit is contained in:
Lioncash 2015-06-25 06:38:02 -04:00
commit 75006056f6

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();
}
}
}