Skip to content

Commit

Permalink
Revert "Remove unused Imports and private method (flutter#15872)"
Browse files Browse the repository at this point in the history
This reverts commit 1b02497.
  • Loading branch information
NoamDev committed Feb 27, 2020
1 parent 42eb8f7 commit bc50e6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import io.flutter.embedding.engine.dart.DartExecutor;
import io.flutter.embedding.engine.renderer.FlutterUiDisplayListener;
import io.flutter.plugin.platform.PlatformPlugin;
import io.flutter.view.FlutterMain;

import static android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,13 @@ public void onLowMemory() {
delegate.onLowMemory();
}

@NonNull
private Context getContextCompat() {
return Build.VERSION.SDK_INT >= 23
? getContext()
: getActivity();
}

/**
* {@link FlutterActivityAndFragmentDelegate.Host} method that is used by
* {@link FlutterActivityAndFragmentDelegate} to obtain Flutter shell arguments when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import io.flutter.embedding.engine.plugins.service.ServiceAware;
import io.flutter.embedding.engine.plugins.service.ServiceControlSurface;
import io.flutter.embedding.engine.plugins.service.ServicePluginBinding;
import io.flutter.plugin.platform.PlatformViewsController;

class FlutterEnginePluginRegistry implements PluginRegistry,
ActivityControlSurface,
Expand Down

0 comments on commit bc50e6c

Please sign in to comment.