(String id, Object data)
| 182 | } |
| 183 | |
| 184 | @Override |
| 185 | public Object onMessage(String id, Object data) { |
| 186 | if (HAS_BUILT_IN_SPLASH_SCREEN) { |
| 187 | return null; |
| 188 | } |
| 189 | if ("splashscreen".equals(id)) { |
| 190 | if ("hide".equals(data.toString())) { |
| 191 | this.removeSplashScreen(false); |
| 192 | } else { |
| 193 | this.showSplashScreen(false); |
| 194 | } |
| 195 | } else if ("spinner".equals(id)) { |
| 196 | if ("stop".equals(data.toString())) { |
| 197 | getView().setVisibility(View.VISIBLE); |
| 198 | getView().requestFocus(); |
| 199 | } |
| 200 | } else if ("onReceivedError".equals(id)) { |
| 201 | this.spinnerStop(); |
| 202 | } |
| 203 | return null; |
| 204 | } |
| 205 | |
| 206 | // Don't add @Override so that plugin still compiles on 3.x.x for a while |
| 207 | public void onConfigurationChanged(Configuration newConfig) { |
nothing calls this directly
no test coverage detected