Merge pull request #1436 from dpalou/MOBILE-2545

MOBILE-2545 ios: Display keyboard accessory bar
main
Juan Leyva 2018-08-21 10:07:26 +01:00 committed by GitHub
commit cc13ddb010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import { CoreLangProvider } from '@providers/lang';
import { CoreLoggerProvider } from '@providers/logger'; import { CoreLoggerProvider } from '@providers/logger';
import { CoreSitesProvider } from '@providers/sites'; import { CoreSitesProvider } from '@providers/sites';
import { CoreLoginHelperProvider } from '@core/login/providers/helper'; import { CoreLoginHelperProvider } from '@core/login/providers/helper';
import { Keyboard } from '@ionic-native/keyboard';
@Component({ @Component({
templateUrl: 'app.html' templateUrl: 'app.html'
@ -32,7 +33,7 @@ export class MoodleMobileApp implements OnInit {
protected logger; protected logger;
protected lastUrls = {}; protected lastUrls = {};
constructor(private platform: Platform, statusBar: StatusBar, logger: CoreLoggerProvider, constructor(private platform: Platform, statusBar: StatusBar, logger: CoreLoggerProvider, keyboard: Keyboard,
private eventsProvider: CoreEventsProvider, private loginHelper: CoreLoginHelperProvider, private zone: NgZone, private eventsProvider: CoreEventsProvider, private loginHelper: CoreLoginHelperProvider, private zone: NgZone,
private appProvider: CoreAppProvider, private langProvider: CoreLangProvider, private sitesProvider: CoreSitesProvider) { private appProvider: CoreAppProvider, private langProvider: CoreLangProvider, private sitesProvider: CoreSitesProvider) {
this.logger = logger.getInstance('AppComponent'); this.logger = logger.getInstance('AppComponent');
@ -45,6 +46,8 @@ export class MoodleMobileApp implements OnInit {
} else { } else {
statusBar.styleDefault(); statusBar.styleDefault();
} }
keyboard.hideKeyboardAccessoryBar(false);
}); });
} }