diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 8ee28627f7ea..cf6afd8d5a59 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,12 +1,12 @@
## What does this implement/fix? Explain your changes.
…
-## Does this close any currently open issues?
+## Does this close any currently open issues?
If it fixes a bug or resolves a feature request, be sure to link to that issue.
…
## Pull request type
-
+
_Put an `x` in the boxes that apply_
- [ ] Bugfix
- [ ] Feature
@@ -14,7 +14,7 @@ _Put an `x` in the boxes that apply_
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
-- [ ] Other (please describe):
+- [ ] Other (please describe):
## Where has this been tested?
…
diff --git a/.github/workflows/ios-app-build.yml b/.github/workflows/ios-app-build.yml
index 54adf6bc916a..99dcc65f6df1 100644
--- a/.github/workflows/ios-app-build.yml
+++ b/.github/workflows/ios-app-build.yml
@@ -77,7 +77,7 @@ jobs:
plutil -insert 'provisioningProfiles' -xml " $APP_ID $UUID_PROVISION " -- Support/OneKey-Info.plist
plutil -insert 'teamID' -string "$DEVELOPMENT_TEAM" -- Support/OneKey-Info.plist
plutil -insert 'signingStyle' -string "mannual" -- Support/OneKey-Info.plist
- working-directory: ios
+ working-directory: ios
- name: Build app
id: xcodebuild_export
run: |
@@ -140,7 +140,7 @@ jobs:
| tee xcodebuild.log \
| xcpretty -r json-compilation-database --output compile_commands.json
oclint-json-compilation-database -e Pods -e CustomCode/Modules/Third/ -- -report-type html -o oclintReport.html
- working-directory: ios/iOS
+ working-directory: ios/iOS
- name: Archive lint artifacts
uses: actions/upload-artifact@v2
if: success()
@@ -148,6 +148,5 @@ jobs:
name: OneKey ios app lint report
path: |
ios/iOS/xcodebuild.log
- ios/iOS/oclintReport.html
+ ios/iOS/oclintReport.html
ios/iOS/clang-analyze/StaticAnalyzer/
-
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 9abb7c6150ed..44c880884d02 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -8,14 +8,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-python@v2
- - uses: actions/cache@v1
- with:
- path: ~/.cache/pre-commit
- key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- - id: file_changes
- uses: jitterbit/get-changed-files@v1
- - uses: pre-commit/action@v2.0.0
- with:
- extra_args: --files ${{ steps.file_changes.outputs.all }}
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ - uses: pre-commit/action@v2.0.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 54fbcdbf2368..e1ba35a30dda 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,5 +37,5 @@ repos:
rev: 1.7.0
hooks:
- id: bandit
- files: ^electrum_gui
- args: [--skip, "B107,B101,B106",]
+ files: ^electrum_gui/common
+ args: [--skip, "B107,B101,B106"]
diff --git a/.travis.yml b/.travis.yml
index c7b90fa59450..01f14d2d33d3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -40,11 +40,11 @@ jobs:
- if [ $TRAVIS_PULL_REQUEST == false ]; then
openssl aes-256-cbc -K $encrypted_0712df971a99_key -iv $encrypted_0712df971a99_iv
-in android/local.properties.enc -out android/local.properties -d;
- sudo docker run --rm -it --name electrum-android-native-builder-cont -v $PWD:/data
+ sudo docker run --rm -it --name electrum-android-native-builder-cont -v $PWD:/data
-e TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER --workdir=/data/android lightningcn/electrum_env:latest
/bin/bash -c 'cp debug.keystore ~/.android/debug.keystore && /data/android/gradlew app:assembleDebug';
else
- sudo docker run --rm -it --name electrum-android-native-builder-cont -v $PWD:/data
+ sudo docker run --rm -it --name electrum-android-native-builder-cont -v $PWD:/data
-e TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER --workdir=/data/android lightningcn/electrum_env:latest
/bin/bash -c 'cp ~/android/local.properties local.properties && cp debug.keystore ~/.android/debug.keystore && /data/android/gradlew app:assembleDebug';
fi
@@ -69,7 +69,7 @@ deploy:
provider: releases
api_key: $GITHUB_API_KEY
file_glob: true
- file:
+ file:
- "android/app/build/outputs/apk/MainNetOnekey/debug/*.apk"
- "android/app/build/outputs/apk/MainNetOnekey/release/*.apk"
- "android/app/build/outputs/apk/TestNetOnekey/debug/*.apk"
diff --git a/AUTHORS b/AUTHORS
index 9cff06784e0c..0a938ec3e378 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -9,4 +9,4 @@ Genjix - Porting pro-mode functionality to lite-gui and worked on server
Slush - Work on the server. Designed the original Stratum spec.
Julian Toash (Tuxavant) - Various fixes to the client.
rdymac - Website and translations.
-kyuupichan - Miscellaneous.
\ No newline at end of file
+kyuupichan - Miscellaneous.
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 2c3308b251ab..d8be371663fa 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -511,7 +511,7 @@ issue #3374. Users should upgrade to 3.0.5.
run "python3 setup.py install" in order to install the new
dependencies.
- * Segwit support:
+ * Segwit support:
- Native segwit scripts are supported using a new type of
seed. The version number for segwit seeds is 0x100. The install
diff --git a/android/Dockerfile b/android/Dockerfile
index 213d951a31e1..7f0d06e447b3 100644
--- a/android/Dockerfile
+++ b/android/Dockerfile
@@ -11,7 +11,7 @@ RUN apt-get update && \
apt-get install -y gettext openjdk-8-jdk-headless unzip wget
RUN echo "progress=dot:giga" > .wgetrc
-# install Python 3.8
+# install Python 3.8
RUN apt install -y python3.8 libpython3.8-minimal libpython3.8-dev libpython3.8-stdlib python3-distutils
RUN filename=sdk-tools-linux-4333796.zip && \
diff --git a/android/app/proguard-android-optimize-wallet.txt b/android/app/proguard-android-optimize-wallet.txt
index 0ba95a58aae9..decead776deb 100644
--- a/android/app/proguard-android-optimize-wallet.txt
+++ b/android/app/proguard-android-optimize-wallet.txt
@@ -97,4 +97,4 @@
-keepclasseswithmembers class * {
@androidx.annotation.Keep (...);
-}
\ No newline at end of file
+}
diff --git a/android/app/proguard-dict.txt b/android/app/proguard-dict.txt
index 6cd876527e03..cba77dc33870 100644
--- a/android/app/proguard-dict.txt
+++ b/android/app/proguard-dict.txt
@@ -200,4 +200,4 @@ Mmmmmm
Mmmmm
Mmmm
Mmm
-Mm
\ No newline at end of file
+Mm
diff --git a/android/app/src/main/assets/initParams.json b/android/app/src/main/assets/initParams.json
index e33b519c1aa0..fa7e45c10a94 100644
--- a/android/app/src/main/assets/initParams.json
+++ b/android/app/src/main/assets/initParams.json
@@ -6,4 +6,4 @@
"hostID": "8080808080808080",
"crt": "7F2181E89310434552545F4150505F45434B41303031420D6A75626974657277616C6C65745F200D6A75626974657277616C6C6574950200805F2504202005255F2404202505245300BF200EEF0C8D0A820182028203820482057F4946B041048FD3FAB3907C5CC8CD193EB2B653EA179115B7F305C9E21DE6D29C0736A3B82025B219F24BDA86D80F5AE262521E124F4C6691A0C47B1FB72D95895E9312CB0DF001005F3746304402204D75EAA2F09604A9597DA905D680EB619B8ADCF080E5AD6950E1DBF26195C9E2022067649AFB4A8BC380B382520499C6F2BB350A8519B0ECDBE0B7374AA898826D0E",
"sk": "B66BE8CB7512A6DFF741839EE8C5092D6987A5D7790E93B52EBB16FCD4EAD7AA"
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/ReceivedPageActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/ReceivedPageActivity.java
index 6d1b8dc541f5..2982af36d9b3 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/ReceivedPageActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/ReceivedPageActivity.java
@@ -264,4 +264,3 @@ protected void onDestroy() {
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/ShareOtherActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/ShareOtherActivity.java
index a3191ddf9c7a..da867d8981ff 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/ShareOtherActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/ShareOtherActivity.java
@@ -373,4 +373,3 @@ protected void onDestroy() {
});
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/personalwallet/mnemonic_word/CreatePersonalHelpPassActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/personalwallet/mnemonic_word/CreatePersonalHelpPassActivity.java
index 118c919eccc1..aff5fb03e1cd 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/personalwallet/mnemonic_word/CreatePersonalHelpPassActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/personalwallet/mnemonic_word/CreatePersonalHelpPassActivity.java
@@ -186,7 +186,3 @@ public void run() {
});
}
}
-
-
-
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/service/NfcNotifyHelper.java b/android/app/src/main/java/org/haobtc/onekey/activities/service/NfcNotifyHelper.java
index ad24da3049b8..ceee3deee0c2 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/service/NfcNotifyHelper.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/service/NfcNotifyHelper.java
@@ -173,4 +173,4 @@ protected void onRestart() {
super.onRestart();
finish();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/settings/fixpin/ChangePinFailedActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/settings/fixpin/ChangePinFailedActivity.java
index cb688b31b32e..39d92b576f5d 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/settings/fixpin/ChangePinFailedActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/settings/fixpin/ChangePinFailedActivity.java
@@ -47,4 +47,4 @@ public void onViewClicked(View view) {
default:
}
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/InputBackupPassActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/InputBackupPassActivity.java
index 76d48a1b00fd..ca38a5e9f7e0 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/InputBackupPassActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/InputBackupPassActivity.java
@@ -74,7 +74,3 @@ public void onViewClicked(View view) {
}
}
}
-
-
-
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/RecoveryActivity.java b/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/RecoveryActivity.java
index efec4be8d573..844c7c039587 100644
--- a/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/RecoveryActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/activities/settings/recovery_set/RecoveryActivity.java
@@ -188,4 +188,3 @@ protected void onRestart() {
}
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/adapter/ChoosePayAddressAdapter.java b/android/app/src/main/java/org/haobtc/onekey/adapter/ChoosePayAddressAdapter.java
index 4b7f6f42878a..8eebb6ed387d 100644
--- a/android/app/src/main/java/org/haobtc/onekey/adapter/ChoosePayAddressAdapter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/adapter/ChoosePayAddressAdapter.java
@@ -106,4 +106,4 @@ public void setmOnItemClickListener(OnItemClickListener mOnItemClickListener) {
this.mOnItemClickListener = mOnItemClickListener;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/adapter/MoreAddressAdapter.java b/android/app/src/main/java/org/haobtc/onekey/adapter/MoreAddressAdapter.java
index 9f0dba9c92e2..c0b6845089a9 100644
--- a/android/app/src/main/java/org/haobtc/onekey/adapter/MoreAddressAdapter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/adapter/MoreAddressAdapter.java
@@ -53,4 +53,3 @@ protected void convert(BaseViewHolder helper, TransactionInfoBean.OutputAddrBean
}
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/bean/HardwareFeatures.java b/android/app/src/main/java/org/haobtc/onekey/bean/HardwareFeatures.java
index ec7c112f6730..4d805b223d10 100644
--- a/android/app/src/main/java/org/haobtc/onekey/bean/HardwareFeatures.java
+++ b/android/app/src/main/java/org/haobtc/onekey/bean/HardwareFeatures.java
@@ -382,4 +382,4 @@ public void setOneKeyVersion(String oneKeyVersion) {
public String toString() {
return new Gson().toJson(this);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/bean/TransactionInfoBean.java b/android/app/src/main/java/org/haobtc/onekey/bean/TransactionInfoBean.java
index 2e71919340d8..6139ed38e21c 100644
--- a/android/app/src/main/java/org/haobtc/onekey/bean/TransactionInfoBean.java
+++ b/android/app/src/main/java/org/haobtc/onekey/bean/TransactionInfoBean.java
@@ -217,4 +217,4 @@ public void setAddress(String address) {
this.address = address;
}
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/card/CardPin.java b/android/app/src/main/java/org/haobtc/onekey/card/CardPin.java
index 91d38ae65e88..b94cba93a8b5 100644
--- a/android/app/src/main/java/org/haobtc/onekey/card/CardPin.java
+++ b/android/app/src/main/java/org/haobtc/onekey/card/CardPin.java
@@ -145,4 +145,3 @@ public void onButtonRequest(ButtonRequestEvent event) {
// finish();
// }
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/card/InitParameter.java b/android/app/src/main/java/org/haobtc/onekey/card/InitParameter.java
index 093859cb8e7a..c505f3701c77 100644
--- a/android/app/src/main/java/org/haobtc/onekey/card/InitParameter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/card/InitParameter.java
@@ -15,4 +15,4 @@ public InitParameter(Context context, Tag tag) {
this.mContext = context;
this.mTag = tag;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/card/NativeApi.java b/android/app/src/main/java/org/haobtc/onekey/card/NativeApi.java
index 63c46fe7b82a..ecce3340f9d6 100644
--- a/android/app/src/main/java/org/haobtc/onekey/card/NativeApi.java
+++ b/android/app/src/main/java/org/haobtc/onekey/card/NativeApi.java
@@ -61,4 +61,4 @@ public class NativeApi {
public static native String[] nativeBTCGetAddress(long contextID, String json);
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/card/utils/JsonParseUtils.java b/android/app/src/main/java/org/haobtc/onekey/card/utils/JsonParseUtils.java
index 27ba9ce38c5d..fb603980b13d 100644
--- a/android/app/src/main/java/org/haobtc/onekey/card/utils/JsonParseUtils.java
+++ b/android/app/src/main/java/org/haobtc/onekey/card/utils/JsonParseUtils.java
@@ -36,4 +36,4 @@ public static String getJsonStr(Context context, String name) {
return "";
}
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/card/utils/Utils.java b/android/app/src/main/java/org/haobtc/onekey/card/utils/Utils.java
index 4c24121a982a..6d3cedea94de 100644
--- a/android/app/src/main/java/org/haobtc/onekey/card/utils/Utils.java
+++ b/android/app/src/main/java/org/haobtc/onekey/card/utils/Utils.java
@@ -81,4 +81,4 @@ public static String byte2HexStr(byte b) {
char d = (char)(j > 9 ? 'A' + j%10 : '0' + j);
return "" + c + d;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/dfu/NotificationActivity.java b/android/app/src/main/java/org/haobtc/onekey/dfu/NotificationActivity.java
index 5807c56b23b5..9c3f8748f849 100644
--- a/android/app/src/main/java/org/haobtc/onekey/dfu/NotificationActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/dfu/NotificationActivity.java
@@ -22,4 +22,4 @@ protected void onCreate(Bundle savedInstanceState) {
// of the task stack
finish();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/dfu/service/DfuService.java b/android/app/src/main/java/org/haobtc/onekey/dfu/service/DfuService.java
index 11bbc3fd8cd8..a77211812b44 100644
--- a/android/app/src/main/java/org/haobtc/onekey/dfu/service/DfuService.java
+++ b/android/app/src/main/java/org/haobtc/onekey/dfu/service/DfuService.java
@@ -15,14 +15,14 @@ public class DfuService extends DfuBaseService {
protected Class extends Activity> getNotificationTarget() {
/*
* As a target activity the NotificationActivity is returned, not the MainActivity. This is because the notification must create a new task:
- *
+ *
* intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- *
+ *
* when user press it. Using NotificationActivity we can check whether the new activity is a root activity (that means no other activity was open before)
* or that there is other activity already open. In the later case the notificationActivity will just be closed. System will restore the previous activity.
* However if the application has been closed during upload and user click the notification a NotificationActivity will be launched as a root activity.
* It will create and start the main activity and terminate itself.
- *
+ *
* This method may be used to restore the target activity in case the application was closed or is open. It may also be used to recreate an activity
* history (see NotificationActivity).
*/
@@ -34,4 +34,4 @@ protected boolean isDebug() {
// return BuildConfig.DEBUG;
return true;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/event/ButtonRequestEvent.java b/android/app/src/main/java/org/haobtc/onekey/event/ButtonRequestEvent.java
index d098fe486da3..292329983b13 100644
--- a/android/app/src/main/java/org/haobtc/onekey/event/ButtonRequestEvent.java
+++ b/android/app/src/main/java/org/haobtc/onekey/event/ButtonRequestEvent.java
@@ -14,4 +14,4 @@ public ButtonRequestEvent(int type) {
public int getType() {
return type;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/exception/ByteFormatException.java b/android/app/src/main/java/org/haobtc/onekey/exception/ByteFormatException.java
index 604beea3d069..c4c7416a4656 100644
--- a/android/app/src/main/java/org/haobtc/onekey/exception/ByteFormatException.java
+++ b/android/app/src/main/java/org/haobtc/onekey/exception/ByteFormatException.java
@@ -11,4 +11,4 @@ public ByteFormatException() {
public ByteFormatException(String message) {
super(message);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/fragment/mainwheel/WheelViewpagerFragment.java b/android/app/src/main/java/org/haobtc/onekey/fragment/mainwheel/WheelViewpagerFragment.java
index 0c7eecb1b4f5..0eed7098678e 100644
--- a/android/app/src/main/java/org/haobtc/onekey/fragment/mainwheel/WheelViewpagerFragment.java
+++ b/android/app/src/main/java/org/haobtc/onekey/fragment/mainwheel/WheelViewpagerFragment.java
@@ -358,4 +358,4 @@ public void onDestroy() {
super.onDestroy();
EventBus.getDefault().unregister(this);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/manager/PreferencesManager.java b/android/app/src/main/java/org/haobtc/onekey/manager/PreferencesManager.java
index 75599f3723b3..cc2facc68d5d 100755
--- a/android/app/src/main/java/org/haobtc/onekey/manager/PreferencesManager.java
+++ b/android/app/src/main/java/org/haobtc/onekey/manager/PreferencesManager.java
@@ -152,4 +152,4 @@ public static boolean contains(Context context, String name, String key) {
public static boolean hasWallet(Context context) {
return !PreferencesManager.getAll(context, org.haobtc.onekey.constant.Constant.WALLETS).isEmpty();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupCheckSuccessActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupCheckSuccessActivity.java
index 857f82387587..0d94c6b73200 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupCheckSuccessActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupCheckSuccessActivity.java
@@ -60,4 +60,4 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
}
return super.onKeyDown(keyCode, event);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupGuideActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupGuideActivity.java
index f2f18eda2ad8..e0fbae970ad3 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupGuideActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/backup/BackupGuideActivity.java
@@ -154,4 +154,4 @@ protected void onDestroy() {
public boolean isRestricted() {
return super.isRestricted();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/dialog/recovery/HardwareRecoveryActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/dialog/recovery/HardwareRecoveryActivity.java
index 52dd627ce684..6ce16678c332 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/dialog/recovery/HardwareRecoveryActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/dialog/recovery/HardwareRecoveryActivity.java
@@ -19,4 +19,4 @@ public void initView() {
public void initData() {
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/DiscoverFragment.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/DiscoverFragment.java
index 896aaa9e1c6f..458b63b20d42 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/DiscoverFragment.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/DiscoverFragment.java
@@ -24,4 +24,4 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
return view;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/MindFragment.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/MindFragment.java
index 3294b19db5d1..94b7e41092ab 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/MindFragment.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/MindFragment.java
@@ -130,4 +130,4 @@ public void onViewClicked(View view) {
break;
}
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/mindmenu/HdRootMnemonicsActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/mindmenu/HdRootMnemonicsActivity.java
index a6bfca25a6b0..f385890126ca 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/mindmenu/HdRootMnemonicsActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/mindmenu/HdRootMnemonicsActivity.java
@@ -200,4 +200,4 @@ protected void onDestroy() {
EventBus.getDefault().unregister(this);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ChooseCurrencyActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ChooseCurrencyActivity.java
index bdde8156b184..b0177ec403e8 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ChooseCurrencyActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ChooseCurrencyActivity.java
@@ -51,4 +51,4 @@ public void onViewClicked(View view) {
break;
}
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ExportPrivateActivity.java b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ExportPrivateActivity.java
index ff2055f1df43..92712dfb23ee 100644
--- a/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ExportPrivateActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/onekeys/homepage/process/ExportPrivateActivity.java
@@ -127,4 +127,4 @@ private void screenTipDialog(Context context, @LayoutRes int resource) {
dialogBtoms.setCanceledOnTouchOutside(true);
dialogBtoms.show();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/ui/activity/CreateMultiSigWalletActivity.java b/android/app/src/main/java/org/haobtc/onekey/ui/activity/CreateMultiSigWalletActivity.java
index f774eead6feb..7e2ce66a6e2b 100644
--- a/android/app/src/main/java/org/haobtc/onekey/ui/activity/CreateMultiSigWalletActivity.java
+++ b/android/app/src/main/java/org/haobtc/onekey/ui/activity/CreateMultiSigWalletActivity.java
@@ -191,4 +191,4 @@ public void onViewClicked(View view) {
public void onFinish(ExitEvent exitEvent) {
finish();
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/ui/dialog/custom/CustomWatchWalletDialog.java b/android/app/src/main/java/org/haobtc/onekey/ui/dialog/custom/CustomWatchWalletDialog.java
index d9f3340a5ddc..129210d16c19 100644
--- a/android/app/src/main/java/org/haobtc/onekey/ui/dialog/custom/CustomWatchWalletDialog.java
+++ b/android/app/src/main/java/org/haobtc/onekey/ui/dialog/custom/CustomWatchWalletDialog.java
@@ -89,4 +89,3 @@ public void onDestroy () {
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/ui/fragment/ConfirmOnHardwareFragment.java b/android/app/src/main/java/org/haobtc/onekey/ui/fragment/ConfirmOnHardwareFragment.java
index 6251b5470cb6..dd3d86a9c035 100644
--- a/android/app/src/main/java/org/haobtc/onekey/ui/fragment/ConfirmOnHardwareFragment.java
+++ b/android/app/src/main/java/org/haobtc/onekey/ui/fragment/ConfirmOnHardwareFragment.java
@@ -49,4 +49,3 @@ public boolean needEvents() {
return true;
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/ui/widget/PointLengthFilter.java b/android/app/src/main/java/org/haobtc/onekey/ui/widget/PointLengthFilter.java
index b944ac354cb6..0f11dc3274ca 100644
--- a/android/app/src/main/java/org/haobtc/onekey/ui/widget/PointLengthFilter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/ui/widget/PointLengthFilter.java
@@ -39,4 +39,3 @@ public interface onMaxListener {
}
}
-
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/ByteFormatter.java b/android/app/src/main/java/org/haobtc/onekey/utils/ByteFormatter.java
index b6d952e1195b..6b5160af8630 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/ByteFormatter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/ByteFormatter.java
@@ -152,4 +152,4 @@ public static String addHexPrefix(String hex) {
}
return String.format("0x%s", hex.toLowerCase(Locale.getDefault()));
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/CashierInputFilter.java b/android/app/src/main/java/org/haobtc/onekey/utils/CashierInputFilter.java
index 97a6e5a02b5c..c2ba8556f214 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/CashierInputFilter.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/CashierInputFilter.java
@@ -75,4 +75,4 @@ public CharSequence filter(CharSequence source, int start, int end, Spanned dest
return dest.subSequence(dstart, dend) + sourceText;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/ClsUtils.java b/android/app/src/main/java/org/haobtc/onekey/utils/ClsUtils.java
index c6745bbecebf..1b74adfbc09d 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/ClsUtils.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/ClsUtils.java
@@ -7,130 +7,130 @@
import java.lang.reflect.Method;
public class ClsUtils
-{
- /**
- * 与设备配对 参考源码:platform/packages/apps/Settings.git
- * /Settings/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
- */
+{
+ /**
+ * 与设备配对 参考源码:platform/packages/apps/Settings.git
+ * /Settings/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
+ */
static public boolean createBond(Class btClass, BluetoothDevice btDevice)
- throws Exception
- {
+ throws Exception
+ {
Method createBondMethod = btClass.getMethod("createBond");
- Boolean returnValue = (Boolean) createBondMethod.invoke(btDevice);
- return returnValue.booleanValue();
- }
-
- /**
- * 与设备解除配对 参考源码:platform/packages/apps/Settings.git
- * /Settings/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
- */
- static public boolean removeBond(Class> btClass, BluetoothDevice btDevice)
- throws Exception
- {
- Method removeBondMethod = btClass.getMethod("removeBond");
- Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice);
- return returnValue.booleanValue();
- }
-
- static public boolean setPin(Class extends BluetoothDevice> btClass, BluetoothDevice btDevice,
- String str) throws Exception
- {
- try
- {
- Method removeBondMethod = btClass.getDeclaredMethod("setPin",
- new Class[]
- {byte[].class});
- Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice,
- new Object[]
- {str.getBytes()});
- Log.e("returnValue", "" + returnValue);
- }
- catch (SecurityException e)
- {
- // throw new RuntimeException(e.getMessage());
- e.printStackTrace();
- }
- catch (IllegalArgumentException e)
- {
- // throw new RuntimeException(e.getMessage());
- e.printStackTrace();
- }
- catch (Exception e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return true;
-
- }
-
- // 取消用户输入
- static public boolean cancelPairingUserInput(Class> btClass,
- BluetoothDevice device) throws Exception
- {
- Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
-// cancelBondProcess(btClass, device);
- Boolean returnValue = (Boolean) createBondMethod.invoke(device);
- return returnValue.booleanValue();
- }
-
- // 取消配对
- static public boolean cancelBondProcess(Class> btClass,
- BluetoothDevice device)
-
- throws Exception
- {
- Method createBondMethod = btClass.getMethod("cancelBondProcess");
- Boolean returnValue = (Boolean) createBondMethod.invoke(device);
- return returnValue.booleanValue();
- }
-
- //确认配对
-
- static public void setPairingConfirmation(Class> btClass,BluetoothDevice device,boolean isConfirm)throws Exception
- {
- Method setPairingConfirmation = btClass.getDeclaredMethod("setPairingConfirmation",boolean.class);
- setPairingConfirmation.invoke(device,isConfirm);
- }
-
-
- /**
- *
- * @param clsShow
- */
- static public void printAllInform(Class clsShow)
- {
- try
- {
- // 取得所有方法
- Method[] hideMethod = clsShow.getMethods();
- int i = 0;
- for (; i < hideMethod.length; i++)
- {
- Log.e("method name", hideMethod[i].getName() + ";and the i is:"
- + i);
- }
- // 取得所有常量
+ Boolean returnValue = (Boolean) createBondMethod.invoke(btDevice);
+ return returnValue.booleanValue();
+ }
+
+ /**
+ * 与设备解除配对 参考源码:platform/packages/apps/Settings.git
+ * /Settings/src/com/android/settings/bluetooth/CachedBluetoothDevice.java
+ */
+ static public boolean removeBond(Class> btClass, BluetoothDevice btDevice)
+ throws Exception
+ {
+ Method removeBondMethod = btClass.getMethod("removeBond");
+ Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice);
+ return returnValue.booleanValue();
+ }
+
+ static public boolean setPin(Class extends BluetoothDevice> btClass, BluetoothDevice btDevice,
+ String str) throws Exception
+ {
+ try
+ {
+ Method removeBondMethod = btClass.getDeclaredMethod("setPin",
+ new Class[]
+ {byte[].class});
+ Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice,
+ new Object[]
+ {str.getBytes()});
+ Log.e("returnValue", "" + returnValue);
+ }
+ catch (SecurityException e)
+ {
+ // throw new RuntimeException(e.getMessage());
+ e.printStackTrace();
+ }
+ catch (IllegalArgumentException e)
+ {
+ // throw new RuntimeException(e.getMessage());
+ e.printStackTrace();
+ }
+ catch (Exception e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ return true;
+
+ }
+
+ // 取消用户输入
+ static public boolean cancelPairingUserInput(Class> btClass,
+ BluetoothDevice device) throws Exception
+ {
+ Method createBondMethod = btClass.getMethod("cancelPairingUserInput");
+// cancelBondProcess(btClass, device);
+ Boolean returnValue = (Boolean) createBondMethod.invoke(device);
+ return returnValue.booleanValue();
+ }
+
+ // 取消配对
+ static public boolean cancelBondProcess(Class> btClass,
+ BluetoothDevice device)
+
+ throws Exception
+ {
+ Method createBondMethod = btClass.getMethod("cancelBondProcess");
+ Boolean returnValue = (Boolean) createBondMethod.invoke(device);
+ return returnValue.booleanValue();
+ }
+
+ //确认配对
+
+ static public void setPairingConfirmation(Class> btClass,BluetoothDevice device,boolean isConfirm)throws Exception
+ {
+ Method setPairingConfirmation = btClass.getDeclaredMethod("setPairingConfirmation",boolean.class);
+ setPairingConfirmation.invoke(device,isConfirm);
+ }
+
+
+ /**
+ *
+ * @param clsShow
+ */
+ static public void printAllInform(Class clsShow)
+ {
+ try
+ {
+ // 取得所有方法
+ Method[] hideMethod = clsShow.getMethods();
+ int i = 0;
+ for (; i < hideMethod.length; i++)
+ {
+ Log.e("method name", hideMethod[i].getName() + ";and the i is:"
+ + i);
+ }
+ // 取得所有常量
Field[] allFields = clsShow.getFields();
- for (i = 0; i < allFields.length; i++)
- {
+ for (i = 0; i < allFields.length; i++)
+ {
Log.e("Field name", allFields[i].getName());
- }
- }
- catch (SecurityException e)
- {
- // throw new RuntimeException(e.getMessage());
- e.printStackTrace();
- }
- catch (IllegalArgumentException e)
- {
- // throw new RuntimeException(e.getMessage());
- e.printStackTrace();
- }
- catch (Exception e)
- {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-}
\ No newline at end of file
+ }
+ }
+ catch (SecurityException e)
+ {
+ // throw new RuntimeException(e.getMessage());
+ e.printStackTrace();
+ }
+ catch (IllegalArgumentException e)
+ {
+ // throw new RuntimeException(e.getMessage());
+ e.printStackTrace();
+ }
+ catch (Exception e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/CommonUtil.java b/android/app/src/main/java/org/haobtc/onekey/utils/CommonUtil.java
index 03cd70e3b97a..8b0fc6d541cd 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/CommonUtil.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/CommonUtil.java
@@ -38,16 +38,16 @@
import java.util.UUID;
public class CommonUtil {
-
+
private static String generateFileName() {
return UUID.randomUUID().toString();
}
-
+
private static final String SD_PATH = Environment.getExternalStorageDirectory().getPath() + "/OA头像/";
-
+
public static void saveBitmap2file(Bitmap bmp, Context context) {
-
-
+
+
String savePath;
String fileName = generateFileName() + ".JPEG";
if (Environment.getExternalStorageState().equals(
@@ -81,9 +81,9 @@ public static void saveBitmap2file(Bitmap bmp, Context context) {
// }
// 最后通知图库更新
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse("file://" + savePath+fileName)));
-
+
}
-
+
public static File getFileDir(Context context, String desFileName) {
try {
File dir = new File(Environment.getExternalStorageDirectory().toString() + "/carefree/");
@@ -95,9 +95,9 @@ public static File getFileDir(Context context, String desFileName) {
e.printStackTrace();
return new File(context.getFilesDir() + desFileName);
}
-
+
}
-
+
public static Bitmap createAsciiPic(final String path, Context context) {
final String base = "#8XOHLTI)i=+;:,.";// 字符串由复杂到简单
// final String base = "#,.0123456789:;@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";// 字符串由复杂到简单
@@ -136,7 +136,7 @@ public static Bitmap createAsciiPic(final String path, Context context) {
// return creatCodeBitmap(text,context,colors);
// return image;
}
-
+
public static Bitmap createAsciiPicColor(final String path, Context context) {
final String base = "#8XOHLTI)i=+;:,.";// 字符串由复杂到简单
// final String base = "#,.0123456789:;@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";// 字符串由复杂到简单
@@ -178,11 +178,11 @@ public static Bitmap createAsciiPicColor(final String path, Context context) {
// return creatCodeBitmap(text,context,colors);
// return image;
}
-
+
public static Bitmap creatCodeBitmap(StringBuilder contents, Context context, List colors) {
// contents = new StringBuilder().append("")
float scale = context.getResources().getDisplayMetrics().scaledDensity;
-
+
TextView tv = new TextView(context);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
@@ -202,15 +202,15 @@ public static Bitmap creatCodeBitmap(StringBuilder contents, Context context, Li
tv.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
tv.layout(0, 0, tv.getMeasuredWidth(), tv.getMeasuredHeight());
-
-
+
+
tv.setBackgroundColor(Color.WHITE);
-
+
tv.buildDrawingCache();
Bitmap bitmapCode = tv.getDrawingCache();
return bitmapCode;
}
-
+
public static Bitmap textAsBitmap(StringBuilder text, Context context) {
TextPaint textPaint = new TextPaint();
textPaint.setColor(Color.GRAY);
@@ -221,27 +221,27 @@ public static Bitmap textAsBitmap(StringBuilder text, Context context) {
DisplayMetrics dm = new DisplayMetrics();
wm.getDefaultDisplay().getMetrics(dm);
int width = dm.widthPixels; //
-
+
StaticLayout layout = new StaticLayout(text, textPaint, width,
-
+
Layout.Alignment.ALIGN_CENTER, 1f, 0.0f, true);
-
+
Bitmap bitmap = Bitmap.createBitmap(layout.getWidth() + 20,
-
+
layout.getHeight() + 20, Bitmap.Config.ARGB_8888);
-
+
Canvas canvas = new Canvas(bitmap);
-
+
canvas.translate(10, 10);
-
+
canvas.drawColor(Color.WHITE);
-
+
// canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);//绘制透明色
-
+
layout.draw(canvas);
-
+
return bitmap;
-
+
}
public static Bitmap textAsBitmapColor(StringBuilder text, List colors, Context context) {
TextPaint textPaint = new TextPaint();
@@ -260,32 +260,32 @@ public static Bitmap textAsBitmapColor(StringBuilder text, List colors,
spannableString.setSpan(colorSpan, i, i+1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
}
StaticLayout layout = new StaticLayout(spannableString, textPaint, width,
-
+
Layout.Alignment.ALIGN_CENTER, 1f, 0.0f, true);
-
+
Bitmap bitmap = Bitmap.createBitmap(layout.getWidth() + 20,
-
+
layout.getHeight() + 20, Bitmap.Config.ARGB_8888);
-
+
Canvas canvas = new Canvas(bitmap);
-
+
canvas.translate(10, 10);
-
+
canvas.drawColor(Color.WHITE);
-
+
// canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);//绘制透明色
-
+
layout.draw(canvas);
-
+
return bitmap;
-
+
}
-
+
public static Bitmap scale(String src, int newWidth, int newHeight) {
Bitmap ret = Bitmap.createScaledBitmap(BitmapFactory.decodeFile(src), newWidth, newHeight, true);
return ret;
}
-
+
/**
* 存放拍摄图片的文件夹
*/
@@ -298,8 +298,8 @@ public static Bitmap scale(String src, int newWidth, int newHeight) {
* 图片种类
*/
public static final String IMAGE_TYPE = ".png";
-
-
+
+
/**
* 获取手机可存储路径
*
@@ -317,7 +317,7 @@ private static String getPhoneRootPath(Context context) {
return context.getCacheDir().getPath();
}
}
-
+
/**
* 使用当前系统时间作为上传图片的名称
*
@@ -336,7 +336,7 @@ public static String getPhotoFileName(Context context) {
String photoName = "/" + time + IMAGE_TYPE;
return file + photoName;
}
-
+
/**
* 保存Bitmap图片在SD卡中
* 如果没有SD卡则存在手机中
@@ -369,7 +369,7 @@ public static String savePhotoToSD(Bitmap mbitmap, Context context) {
}
}
}
-
+
/**
* 把原图按1/10的比例压缩
*
@@ -384,7 +384,7 @@ public static Bitmap getCompressPhoto(String path) {
options = null;
return bmp;
}
-
+
/**
* 处理旋转后的图片
*
@@ -393,7 +393,7 @@ public static Bitmap getCompressPhoto(String path) {
* @return 返回修复完毕后的图片路径
*/
public static String amendRotatePhoto(String originpath, Context context) {
-
+
// 取得图片旋转角度
int angle = readPictureDegree(originpath);
// 把原图压缩后得到Bitmap对象
@@ -404,9 +404,9 @@ public static String amendRotatePhoto(String originpath, Context context) {
} else {
return originpath;
}
-
+
}
-
+
/**
* 读取照片旋转角度
*
@@ -434,7 +434,7 @@ public static int readPictureDegree(String path) {
}
return degree;
}
-
+
/**
* 旋转图片
*
@@ -460,7 +460,7 @@ public static Bitmap rotaingImageView(int angle, Bitmap bitmap) {
}
return returnBm;
}
-
+
public static Bitmap sizeCompres(String path, int rqsW, int rqsH) {
// 用option设置返回的bitmap对象的一些属性参数
final BitmapFactory.Options options = new BitmapFactory.Options();
@@ -480,4 +480,4 @@ public static Bitmap sizeCompres(String path, int rqsW, int rqsH) {
}
return BitmapFactory.decodeFile(path, options);// 主要通过option里的inSampleSize对原图片进行按比例压缩
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/EmojiEditText.java b/android/app/src/main/java/org/haobtc/onekey/utils/EmojiEditText.java
index 1c1771dc20f8..1f79f4605b13 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/EmojiEditText.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/EmojiEditText.java
@@ -123,4 +123,4 @@ private static boolean isEmojiCharacter(char codePoint) {
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/ImageUtils.java b/android/app/src/main/java/org/haobtc/onekey/utils/ImageUtils.java
index e252c85116d1..1c8ca4c8a4c3 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/ImageUtils.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/ImageUtils.java
@@ -60,4 +60,4 @@ private static File sharePic(Bitmap cachebmp, String child) {
}
return qrImage;
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/NfcUtils.java b/android/app/src/main/java/org/haobtc/onekey/utils/NfcUtils.java
index 95bf57919774..c94861af5f26 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/NfcUtils.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/NfcUtils.java
@@ -83,4 +83,4 @@ private static void goToSet(Activity activity) {
activity.startActivity(intent);
}
-}
\ No newline at end of file
+}
diff --git a/android/app/src/main/java/org/haobtc/onekey/utils/OpenFileDialog.java b/android/app/src/main/java/org/haobtc/onekey/utils/OpenFileDialog.java
index a9ce5e568da9..96af8ade732a 100644
--- a/android/app/src/main/java/org/haobtc/onekey/utils/OpenFileDialog.java
+++ b/android/app/src/main/java/org/haobtc/onekey/utils/OpenFileDialog.java
@@ -23,7 +23,7 @@
public class OpenFileDialog {
public static String tag = "OpenFileDialog";
- static final public String sRoot = "/";
+ static final public String sRoot = "/";
static final public String sParent = "..";
static final public String sFolder = ".";
static final public String sEmpty = "";
@@ -37,19 +37,19 @@ public static Dialog createDialog(int id, Context context, String title, Callbac
dialog.setTitle(title);
return dialog;
}
-
+
static class FileSelectView extends ListView implements AdapterView.OnItemClickListener {
-
-
+
+
private CallbackBundle callback = null;
private String path = sRoot;
private List