Commit e0174c9d authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Update hello_services for an engine API change (#4919)

parent c14208dc
......@@ -16,7 +16,6 @@ import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import org.chromium.base.PathUtils;
import org.domokit.activity.ActivityImpl;
import io.flutter.view.FlutterMain;
import io.flutter.view.FlutterView;
......@@ -38,8 +37,7 @@ public class ExampleActivity extends Activity {
setContentView(R.layout.hello_services_layout);
flutterView = (FlutterView) findViewById(R.id.flutter_view);
File appBundle = new File(PathUtils.getDataDirectory(this), FlutterMain.APP_BUNDLE);
flutterView.runFromBundle(appBundle.getPath(), null);
flutterView.runFromBundle(FlutterMain.findAppBundlePath(getApplicationContext()), null);
flutterView.addOnMessageListener("getLocation",
new FlutterView.OnMessageListener() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment