forked from len0rd/rockbox
android: don't crash if the user presses HOME while the loading screen is showing, this shuld also be made canceleable later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28530 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8371d78519
commit
eab843f2c3
1 changed files with 6 additions and 3 deletions
|
|
@ -131,21 +131,24 @@ public class RockboxActivity extends Activity
|
||||||
protected void onPause()
|
protected void onPause()
|
||||||
{
|
{
|
||||||
super.onPause();
|
super.onPause();
|
||||||
rbservice.set_activity(null);
|
if (rbservice != null)
|
||||||
|
rbservice.set_activity(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop()
|
protected void onStop()
|
||||||
{
|
{
|
||||||
super.onStop();
|
super.onStop();
|
||||||
rbservice.set_activity(null);
|
if (rbservice != null)
|
||||||
|
rbservice.set_activity(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy()
|
protected void onDestroy()
|
||||||
{
|
{
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
rbservice.set_activity(null);
|
if (rbservice != null)
|
||||||
|
rbservice.set_activity(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LOG(CharSequence text)
|
private void LOG(CharSequence text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue