mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #2658 from sigmabeta/android-dont-crash
Android: Don't crash trying to hide toolbar in game.
This commit is contained in:
commit
75006056f6
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user