Android: Don't crash trying to hide toolbar in game.
This commit is contained in:
parent
521f6e89c3
commit
e970f757d0
|
@ -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