fixed missing storage handler in screen saver service, to resolve ambiguous dirs
This commit is contained in:
parent
6979802da9
commit
1f8a2958f1
3 changed files with 5 additions and 5 deletions
|
@ -102,6 +102,7 @@ class ScreenSaverService : DreamService() {
|
|||
MethodChannel(messenger, MediaFetchHandler.CHANNEL).setMethodCallHandler(MediaFetchHandler(this))
|
||||
MethodChannel(messenger, MediaStoreHandler.CHANNEL).setMethodCallHandler(MediaStoreHandler(this))
|
||||
MethodChannel(messenger, MetadataFetchHandler.CHANNEL).setMethodCallHandler(MetadataFetchHandler(this))
|
||||
MethodChannel(messenger, StorageHandler.CHANNEL).setMethodCallHandler(StorageHandler(this))
|
||||
// - need ContextWrapper
|
||||
MethodChannel(messenger, AccessibilityHandler.CHANNEL).setMethodCallHandler(AccessibilityHandler(this))
|
||||
// - need Service
|
||||
|
|
|
@ -36,6 +36,7 @@ class WallpaperActivity : FlutterActivity() {
|
|||
MethodChannel(messenger, EmbeddedDataHandler.CHANNEL).setMethodCallHandler(EmbeddedDataHandler(this))
|
||||
MethodChannel(messenger, MediaFetchHandler.CHANNEL).setMethodCallHandler(MediaFetchHandler(this))
|
||||
MethodChannel(messenger, MetadataFetchHandler.CHANNEL).setMethodCallHandler(MetadataFetchHandler(this))
|
||||
MethodChannel(messenger, StorageHandler.CHANNEL).setMethodCallHandler(StorageHandler(this))
|
||||
// - need ContextWrapper
|
||||
MethodChannel(messenger, AccessibilityHandler.CHANNEL).setMethodCallHandler(AccessibilityHandler(this))
|
||||
MethodChannel(messenger, WallpaperHandler.CHANNEL).setMethodCallHandler(WallpaperHandler(this))
|
||||
|
|
|
@ -104,12 +104,10 @@ class _HomePageState extends State<HomePage> {
|
|||
final intentData = widget.intentData ?? await IntentService.getIntentData();
|
||||
final intentAction = intentData[intentDataKeyAction];
|
||||
|
||||
if (!{actionScreenSaver, actionSetWallpaper}.contains(intentAction)) {
|
||||
await androidFileUtils.init();
|
||||
if (settings.isInstalledAppAccessAllowed) {
|
||||
if (!{actionScreenSaver, actionSetWallpaper}.contains(intentAction) && settings.isInstalledAppAccessAllowed) {
|
||||
unawaited(androidFileUtils.initAppNames());
|
||||
}
|
||||
}
|
||||
|
||||
if (intentData.isNotEmpty) {
|
||||
await reportService.log('Intent data=$intentData');
|
||||
|
|
Loading…
Reference in a new issue