Commit 387e3374 authored by 林生雨's avatar 林生雨

commit

parent 14a8a5b0
This diff is collapsed.
...@@ -94,11 +94,11 @@ class AlbumModel { ...@@ -94,11 +94,11 @@ class AlbumModel {
} }
void initScanImages(BuildContext context) { void initScanImages(BuildContext context) {
if (isAndroid) { // if (isAndroid) {
_listen = GengmeiFlutterPlugin.phoneImagesEvent _listen = GengmeiFlutterPlugin.phoneImagesEvent
.receiveBroadcastStream() .receiveBroadcastStream()
.listen(_onEvent, onError: _onError); .listen(_onEvent, onError: _onError);
} // }
AlbumRepository.getInstance().scanPhoneImg().listen((value) { AlbumRepository.getInstance().scanPhoneImg().listen((value) {
if (value != null) { if (value != null) {
_mainValue = value; _mainValue = value;
......
This diff is collapsed.
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