mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add CallSuper annotation to onCreate(). (flutter/engine#4789)
This provides improved code inspection, making it easier for developers to figure out what might be going wrong if they override this and don't call super, like I just did. :-)
This commit is contained in:
parent
db0aabe3ff
commit
17f59f4dd6
@ -6,6 +6,7 @@ package io.flutter.app;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.support.annotation.CallSuper;
|
||||
|
||||
import io.flutter.view.FlutterMain;
|
||||
|
||||
@ -15,6 +16,7 @@ import io.flutter.view.FlutterMain;
|
||||
*/
|
||||
public class FlutterApplication extends Application {
|
||||
@Override
|
||||
@CallSuper
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
FlutterMain.startInitialization(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user