Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2859a563
Commit
2859a563
authored
Sep 18, 2017
by
Zachary Anderson
Committed by
GitHub
Sep 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fuchsia] Fix view reassemble trigger after hot reload (#12151)
parent
88cd043d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
fuchsia_reload.dart
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
+2
-1
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+5
-1
No files found.
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
View file @
2859a563
...
...
@@ -134,7 +134,8 @@ class FuchsiaReloadCommand extends FlutterCommand {
final
List
<
Uri
>
observatoryUris
=
fullAddresses
.
map
(
(
String
a
)
=>
Uri
.
parse
(
'http://
$a
'
)
).
toList
();
final
FuchsiaDevice
device
=
new
FuchsiaDevice
(
fullAddresses
[
0
]);
final
FuchsiaDevice
device
=
new
FuchsiaDevice
(
fullAddresses
[
0
],
name:
_address
);
final
FlutterDevice
flutterDevice
=
new
FlutterDevice
(
device
);
flutterDevice
.
observatoryUris
=
observatoryUris
;
final
HotRunner
hotRunner
=
new
HotRunner
(
...
...
packages/flutter_tools/lib/src/run_hot.dart
View file @
2859a563
...
...
@@ -549,8 +549,12 @@ class HotRunner extends ResidentRunner {
reassembleTimer
.
start
();
// Reload the isolate.
for
(
FlutterDevice
device
in
flutterDevices
)
{
for
(
FlutterView
view
in
device
.
views
)
printTrace
(
'Sending reload events to
${device.device.name}
'
);
for
(
FlutterView
view
in
device
.
views
)
{
printTrace
(
'Sending reload event to "
${view.uiIsolate.name}
"'
);
await
view
.
uiIsolate
.
reload
();
}
await
device
.
refreshViews
();
}
// We are now running from source.
_runningFromSnapshot
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment