Commit c5db1c8e authored by justin's avatar justin Committed by GitHub

Merge pull request #629 from Firewayer/feature/channel_error_fix

Result.error参数类型错误
parents 79455e07 8311247c
package com.idlefish.flutterboost; package com.idlefish.flutterboost;
import android.os.Handler; import android.os.Handler;
import android.util.Log;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.idlefish.flutterboost.interfaces.IContainerRecord; import com.idlefish.flutterboost.interfaces.IContainerRecord;
...@@ -212,7 +214,7 @@ public class FlutterBoostPlugin { ...@@ -212,7 +214,7 @@ public class FlutterBoostPlugin {
} catch (Throwable t) { } catch (Throwable t) {
result.error("no flutter page found!", t.getMessage(), t); result.error("no flutter page found!", t.getMessage(), Log.getStackTraceString(t));
} }
} }
break; break;
...@@ -231,7 +233,7 @@ public class FlutterBoostPlugin { ...@@ -231,7 +233,7 @@ public class FlutterBoostPlugin {
} }
}); });
} catch (Throwable t) { } catch (Throwable t) {
result.error("open page error", t.getMessage(), t); result.error("open page error", t.getMessage(), Log.getStackTraceString(t));
} }
} }
break; break;
...@@ -244,7 +246,7 @@ public class FlutterBoostPlugin { ...@@ -244,7 +246,7 @@ public class FlutterBoostPlugin {
mManager.closeContainer(uniqueId, resultData, exts); mManager.closeContainer(uniqueId, resultData, exts);
result.success(true); result.success(true);
} catch (Throwable t) { } catch (Throwable t) {
result.error("close page error", t.getMessage(), t); result.error("close page error", t.getMessage(), Log.getStackTraceString(t));
} }
} }
break; break;
...@@ -256,7 +258,7 @@ public class FlutterBoostPlugin { ...@@ -256,7 +258,7 @@ public class FlutterBoostPlugin {
mManager.onShownContainerChanged(newId, oldId); mManager.onShownContainerChanged(newId, oldId);
result.success(true); result.success(true);
} catch (Throwable t) { } catch (Throwable t) {
result.error("onShownContainerChanged", t.getMessage(), t); result.error("onShownContainerChanged", t.getMessage(), Log.getStackTraceString(t));
} }
} }
break; break;
......
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