mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This shouldn't result in any logical changes. I've done a quick smoke test by building a local Android engine and running Flutter gallery, no compile errors or other obvious issues. Applied by running `/ci/format.sh | patch -p0` with the altered script added in flutter/engine#16500. I did locally modify the script slightly further so it would run against all Java files in the repo instead of just modified ones.
34 lines
867 B
Java
34 lines
867 B
Java
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package io.flutter.app;
|
|
|
|
import android.app.Activity;
|
|
import android.app.Application;
|
|
import android.support.annotation.CallSuper;
|
|
import io.flutter.view.FlutterMain;
|
|
|
|
/**
|
|
* Flutter implementation of {@link android.app.Application}, managing application-level global
|
|
* initializations.
|
|
*/
|
|
public class FlutterApplication extends Application {
|
|
@Override
|
|
@CallSuper
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
FlutterMain.startInitialization(this);
|
|
}
|
|
|
|
private Activity mCurrentActivity = null;
|
|
|
|
public Activity getCurrentActivity() {
|
|
return mCurrentActivity;
|
|
}
|
|
|
|
public void setCurrentActivity(Activity mCurrentActivity) {
|
|
this.mCurrentActivity = mCurrentActivity;
|
|
}
|
|
}
|