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:
parent
9e6de22e73
commit
a1a1297f7d
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue