Skip to content

Commit

Permalink
fix(android): address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Apr 3, 2020
1 parent 436b381 commit b227ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Copyright (c) 2009-Present by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
Expand Down Expand Up @@ -39,15 +39,14 @@ public void setView(TiUIView view)
protected void handleClose(@NonNull KrollDict options)
{
Log.d(TAG, "handleClose", Log.DEBUG_MODE);
opened = false;
fireEvent("close", null);

if (view != null) {
((TiUIActivityWindow) view).close();
}

releaseViews();
opened =
false; // FIXME: This will lead to odd case of a close listener querying isCLosed and getting false! Set to false above? fire event after?
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ protected void handleClose(@NonNull KrollDict options)
activity.finish();
}

// TODO: Does this ever fire the close event?!
// NOTE: this does not directly fire the close event, but is fired by closeFromActivity()
}

@Override
Expand Down

0 comments on commit b227ebd

Please sign in to comment.