From 1190afef51fc91042efce96e7c4a0cafe3d78ae5 Mon Sep 17 00:00:00 2001 From: mahdihijazi Date: Sun, 17 Dec 2017 01:09:55 +0100 Subject: [Android] Refactor AssetCopyService and the way we extract resources from the assets This solves the following issues: 1. If user uninstall Dolphin and install it again the resources will not be copied unless the user manually clear the app cache because we are enabling the allowBackup flag in the manifest which will make the app restore the settings saved in the shared prefernces including the flag assetsCopied. This PR always copy the files everytime you open Dolphin. 2. If the AssetCopyService took long time and you tried to open the settings screen or start a game the behaviour was not expected or the emulator will crash, this PR make sure that whatever we add to the DirectoryInitializationService or how long it will take will still work as expected by blocking both the settings screen and the emulaion screen to wait untill all resources needed are copied. 3. Better communication between the DirectoryInitializationService and the UI screens using brocast messages. --- Source/Android/app/src/main/res/values/strings.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Android/app/src/main/res/values/strings.xml') diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index 9f51d02edd..d508c148e8 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -244,4 +244,6 @@ Controllers You need to allow write access to external storage for the emulator to work + + Loading Settings... -- cgit v1.2.3