Remove obsolete references to "flutter refresh" in hello_services (#7093)

Fixes https://github.com/flutter/flutter/issues/6947
This commit is contained in:
Jason Simmons
2016-11-30 09:49:43 -08:00
committed by GitHub
parent e05dcc9c71
commit ee5a80a6af
2 changed files with 0 additions and 34 deletions

View File

@@ -76,20 +76,6 @@ public class ExampleActivity extends Activity {
flutterView.onPostResume();
}
@Override
protected void onNewIntent(Intent intent) {
// Reload the Flutter Dart code when the activity receives an intent
// from the "flutter refresh" command.
// This feature should only be enabled during development. Use the
// debuggable flag as an indicator that we are in development mode.
if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
if (Intent.ACTION_RUN.equals(intent.getAction())) {
flutterView.runFromBundle(intent.getDataString(),
intent.getStringExtra("snapshot"));
}
}
}
private void sendGetRandom() {
JSONObject message = new JSONObject();
try {