Skip to content

Commit

Permalink
Fixed Android bug where login error message hidden by soft keyboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
nero120 committed Jan 5, 2020
1 parent b721db8 commit 00be3f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/android/js/platformImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SpinnerDialog.show = function () { };

/* ------------------------------------------------------------------------------------
* Class name: xBrowserSync.App.PlatformImplementation
* Description: Implements xBrowserSync.App.Platform for mobile apps.
* Description: Implements xBrowserSync.App.Platform for Android app.
* ------------------------------------------------------------------------------------ */

xBrowserSync.App.PlatformImplementation = function ($interval, $q, $timeout, platform, globals, utility, bookmarks) {
Expand Down Expand Up @@ -1472,6 +1472,10 @@ xBrowserSync.App.PlatformImplementation = function ($interval, $q, $timeout, pla
utility.LogError(new Error(errMessage), 'platform.displaySnackbar');
};

if (document.activeElement) {
document.activeElement.blur();
}

cordova.plugins.snackbar.create(
text,
5000,
Expand Down

0 comments on commit 00be3f9

Please sign in to comment.