1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: add bits missing from “bailout in ComponentPeerView’s callbacks if underlying host is deleted.”

This was meant to be there since the beginning. The commit missing the changes is: 9527e077b1
This commit is contained in:
Lukasz Kozakiewicz 2017-10-12 17:33:39 +01:00
parent 9e6de22e73
commit a1a1297f7d

View file

@ -317,6 +317,8 @@ public class JuceAppActivity extends Activity
public final void deleteView (ComponentPeerView view)
{
view.host = 0;
ViewGroup group = (ViewGroup) (view.getParent());
if (group != null)
@ -590,6 +592,9 @@ public class JuceAppActivity extends Activity
@Override
public boolean onTouchEvent (MotionEvent event)
{
if (host == 0)
return false;
int action = event.getAction();
long time = event.getEventTime();