Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

Commit

Permalink
change default on android view
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin committed Nov 15, 2018
1 parent 769d818 commit fef4d87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/snackbar.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ export class SnackBar {
options.actionText = options.actionText ? options.actionText : 'Close';
options.hideDelay = options.hideDelay ? options.hideDelay : 3000;

const attachToView =
topmost().currentPage.android || topmost().currentPage.parent.android;
const attachToView = topmost().currentPage.android;
this._snackbar = android.support.design.widget.Snackbar.make(
attachToView,
options.snackText,
Expand Down

0 comments on commit fef4d87

Please sign in to comment.