diff --git a/build.gradle b/build.gradle index 06dd00dc762e906aae9d3bbe99b958eb024f1999..d3c9f1fef7ce4e18162867c20c11bfc65e1a8d28 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.2.7' + classpath 'com.huawei.ohos:hap:2.4.4.2' classpath 'com.huawei.ohos:decctest:1.0.0.7' } } diff --git a/entry/src/main/java/de/adorsys/ohos/securestoragetest/slice/MainAbilitySlice.java b/entry/src/main/java/de/adorsys/ohos/securestoragetest/slice/MainAbilitySlice.java index b19da4f77e6d38ebd4a05d1a7e52f71eccd3451e..efa857bde098c904938049ae1a2bb297c0977592 100644 --- a/entry/src/main/java/de/adorsys/ohos/securestoragetest/slice/MainAbilitySlice.java +++ b/entry/src/main/java/de/adorsys/ohos/securestoragetest/slice/MainAbilitySlice.java @@ -18,7 +18,7 @@ package de.adorsys.ohos.securestoragetest.slice; import de.adorsys.ohos.securestoragelibrary.SecurePreferences; import de.adorsys.ohos.securestoragelibrary.SecureStorageException; -import com.de.adorsys.ohos.securestoragetest.ResourceTable; +import de.adorsys.ohos.securestoragetest.ResourceTable; import ohos.aafwk.ability.AbilitySlice; import ohos.aafwk.content.Intent; import ohos.agp.colors.RgbColor; @@ -178,6 +178,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL } // 展示成功信息 + storeTextTips.setMultipleLine(true); storeTextTips.setText("Value: " + storeValueText + " successfully saved for key: " + strokeKeyText); // 显示存储key value提示 @@ -203,6 +204,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL return; } String value = SecurePreferences.getStringValue(getApplicationContext(), getDataKeyText, FAILED); + getTextTips.setMultipleLine(true); getTextTips.setText("Decrypted Data for key: " + getDataKeyText + " = " + value); getTextTips.setVisibility(Text.VISIBLE); removeTextTips.setVisibility(Text.INVISIBLE); @@ -220,6 +222,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL } String value = SecurePreferences.getStringValue(getApplicationContext(), removeDataKeyText, FAILED); HiLog.info(LABEL, "removeValue " + value); + removeTextTips.setMultipleLine(true); if (FAILED.equals(value)) { removeTextTips.setText("Value for key: " + removeDataKey.getText() + " not exist !"); } else {