List of usage examples for org.apache.cordova PluginManager onConfigurationChanged
public void onConfigurationChanged(Configuration newConfig)
From source file:com.example.administrator.myapplication.fragment.CordovaFragment2.java
License:Apache License
/** * Called by the system when the device configuration changes while your activity is running. * * @param newConfig The new device configuration *///from w w w.java 2 s. c om @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if (this.appView == null) { return; } PluginManager pm = this.appView.getPluginManager(); if (pm != null) { pm.onConfigurationChanged(newConfig); } }
From source file:io.syng.fragment.WebViewFragment.java
License:Mozilla Public License
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if (this.webView == null) { return;//from ww w .j a va2 s. c o m } PluginManager pm = this.webView.getPluginManager(); if (pm != null) { pm.onConfigurationChanged(newConfig); } }