mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Android: ensure that navigation/status bar visibility is correctly restored when the app gets resumed.
This commit is contained in:
parent
181f4ab7fc
commit
360449de0b
2 changed files with 23 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ public class JuceAppActivity extends Activity
|
|||
{
|
||||
super.onResume();
|
||||
resumeApp();
|
||||
|
||||
// Ensure that navigation/status bar visibility is correctly restored.
|
||||
for (int i = 0; i < viewHolder.getChildCount(); ++i)
|
||||
((ComponentPeerView) viewHolder.getChildAt (i)).appResumed();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -821,6 +825,17 @@ public class JuceAppActivity extends Activity
|
|||
{
|
||||
return true; //xxx needs to check overlapping views
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private native void handleAppResumed (long host);
|
||||
|
||||
public void appResumed()
|
||||
{
|
||||
if (host == 0)
|
||||
return;
|
||||
|
||||
handleAppResumed (host);
|
||||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue