@@ -352,9 +352,9 @@ void InitMethodChannel(FlView* flutter_instance) {
352352 const gchar *method_name = fl_method_call_get_name (method_call);
353353 if (strcmp (" app.stat" , method_name) == 0 ) {
354354 FlValue *args = fl_method_call_get_args (method_call);
355- if (fl_value_get_type (args) != FL_VALUE_TYPE_LIST || fl_value_get_length (args) < 1 ) RETURN_BADARG_ERR (app.stop );
355+ if (fl_value_get_type (args) != FL_VALUE_TYPE_LIST || fl_value_get_length (args) < 1 ) RETURN_BADARG_ERR (app.stat );
356356 FlValue *name_ = fl_value_get_list_value (args, 0 );
357- if (fl_value_get_type (name_) != FL_VALUE_TYPE_STRING) RETURN_BADARG_ERR (app.stop );
357+ if (fl_value_get_type (name_) != FL_VALUE_TYPE_STRING) RETURN_BADARG_ERR (app.stat );
358358 std::string name = std::string (fl_value_get_string (name_));
359359 g_autoptr (FlValue) appstat = fl_value_new_map ();
360360 appStat (name, appstat);
@@ -392,9 +392,9 @@ void InitMethodChannel(FlView* flutter_instance) {
392392 response = FL_METHOD_RESPONSE (fl_method_success_response_new (nullptr ));
393393 } else if (strcmp (" app.restart" , method_name) == 0 ) {
394394 FlValue *args = fl_method_call_get_args (method_call);
395- if (fl_value_get_type (args) != FL_VALUE_TYPE_LIST || fl_value_get_length (args) < 1 ) RETURN_BADARG_ERR (app.stop );
395+ if (fl_value_get_type (args) != FL_VALUE_TYPE_LIST || fl_value_get_length (args) < 1 ) RETURN_BADARG_ERR (app.restart );
396396 FlValue *name_ = fl_value_get_list_value (args, 0 );
397- if (fl_value_get_type (name_) != FL_VALUE_TYPE_STRING) RETURN_BADARG_ERR (app.stop );
397+ if (fl_value_get_type (name_) != FL_VALUE_TYPE_STRING) RETURN_BADARG_ERR (app.restart );
398398 std::string name = std::string (fl_value_get_string (name_));
399399 appRestart (name);
400400 response = FL_METHOD_RESPONSE (fl_method_success_response_new (nullptr ));
0 commit comments