Apply modified vconfkey for crypto error status 58/183358/1
authorseolheui kim <s414.kim@samsung.com>
Thu, 5 Jul 2018 01:05:21 +0000 (10:05 +0900)
committerseolheui kim <s414.kim@samsung.com>
Thu, 5 Jul 2018 01:06:36 +0000 (10:06 +0900)
Change-Id: I753b55dd77b20e5082db77cc5e89e9e10c7a30c2
Signed-off-by: seolheui kim <s414.kim@samsung.com>
ode/src/interface/external/password-sdcard.cpp
ode/src/interface/progress.cpp

index 6ab1e6b807c224ef512576fd82dfcbb4e51abf5d..e999f33f9220d8ff26f944708c7abdfdac094d61 100644 (file)
@@ -74,7 +74,8 @@ void PasswordSDCard::onResultCallback(int result, const std::string &data)
        Vconf cryptoState(VCONFKEY_SDE_CRYPTO_STATE);
        std::string state(cryptoState.getString());
 
-       if (!state.compare("error_partially_encrypted")) {
+       if (!state.compare("error_partially_encrypted") ||
+                       !state.compare("error_partially_decrypted")) {
                retryCrypto(data);
        } else {
                AppControl appControl("org.tizen.ode");
index e09e2ce40e48143061bf2669fd64349bb570df0e..a05fd582fd024fe1a92d35f21d67bf3381140a16 100644 (file)
@@ -176,7 +176,7 @@ void ExternalDecryptProgress::createNotification()
 void ExternalDecryptProgress::cryptoStateChangedCallback()
 {
        std::string state(cryptoState.getString());
-       if (!state.compare("error_partially_encrypted")) {
+       if (!state.compare("error_partially_decrypted")) {
                retryPopup.show();
                retryPopup.createNotification();
        }