()
| 137 | currentContext = ctx; |
| 138 | Display.getInstance().callSerially(new Runnable() { |
| 139 | @Override |
| 140 | public void run() { |
| 141 | CarApplication app = application; |
| 142 | if (app == null) { |
| 143 | com.codename1.io.Log.p("Car: a head unit connected but no CarApplication was " |
| 144 | + "registered. Call Car.setApplication(...) from your app's init()."); |
| 145 | return; |
| 146 | } |
| 147 | CarScreen root = app.onCreateRootScreen(ctx); |
| 148 | ctx.setRootScreen(root); |
| 149 | app.onCarConnected(ctx); |
| 150 | fireConnected(ctx); |
| 151 | } |
| 152 | }); |
| 153 | return ctx; |
| 154 | } |
nothing calls this directly
no test coverage detected