MCPcopy Create free account
hub / github.com/cogentcore/core / onCreate

Method onCreate

system/driver/android/GoNativeActivity.java:210–226  ·  view source on GitHub ↗
(Bundle savedInstanceState)

Source from the content-addressed store, hash-verified

208 }
209
210 @Override
211 public void onCreate(Bundle savedInstanceState) {
212 load();
213 super.onCreate(savedInstanceState);
214 setupEntry();
215 updateTheme(getResources().getConfiguration());
216
217 View view = findViewById(android.R.id.content).getRootView();
218 view.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
219 public void onLayoutChange(View v, int left, int top, int right, int bottom,
220 int oldLeft, int oldTop, int oldRight, int oldBottom) {
221 GoNativeActivity.this.updateLayout();
222 }
223 });
224
225 mScaleDetector = new ScaleGestureDetector(this, new ScaleGestureListener());
226 }
227
228 private void setupEntry() {
229 runOnUiThread(new Runnable() {

Callers

nothing calls this directly

Calls 3

loadMethod · 0.95
setupEntryMethod · 0.95
updateThemeMethod · 0.95

Tested by

no test coverage detected