Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
deBeauvoir
samourai-wallet-android
Commits
cbddafb6
Commit
cbddafb6
authored
Dec 29, 2021
by
T Dev. D
😎
Browse files
AddressFactory: use reset()
parent
2cd35a6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
app/src/main/java/com/samourai/wallet/payload/PayloadUtil.java
...rc/main/java/com/samourai/wallet/payload/PayloadUtil.java
+3
-2
app/src/main/java/com/samourai/wallet/util/AddressFactory.java
...rc/main/java/com/samourai/wallet/util/AddressFactory.java
+1
-1
app/src/main/java/com/samourai/wallet/util/AppUtil.java
app/src/main/java/com/samourai/wallet/util/AppUtil.java
+8
-7
No files found.
app/src/main/java/com/samourai/wallet/payload/PayloadUtil.java
View file @
cbddafb6
...
...
@@ -176,8 +176,6 @@ public class PayloadUtil {
PrefsUtil
.
getInstance
(
context
).
clear
();
AddressFactory
.
getInstance
().
wipe
();
RicochetMeta
.
getInstance
(
context
).
empty
();
RicochetMeta
.
getInstance
(
context
).
setIndex
(
0
);
...
...
@@ -185,6 +183,9 @@ public class PayloadUtil {
HD_WalletFactory
.
getInstance
(
context
).
clear
();
AddressFactory
.
getInstance
().
reset
();
AddressFactory
.
getInstance
().
wipe
();
File
dir
=
context
.
getDir
(
dataDir
,
Context
.
MODE_PRIVATE
);
File
datfile
=
new
File
(
dir
,
strFilename
);
File
tmpfile
=
new
File
(
dir
,
strTmpFilename
);
...
...
app/src/main/java/com/samourai/wallet/util/AddressFactory.java
View file @
cbddafb6
...
...
@@ -41,7 +41,7 @@ public class AddressFactory extends AddressFactoryGeneric {
account2xpub
=
new
HashMap
<
Integer
,
String
>();
}
public
void
rese
t
()
{
public
void
ini
t
()
{
Log
.
d
(
TAG
,
"reset"
);
HD_Wallet
bip44w
=
HD_WalletFactory
.
getInstance
(
context
).
get
();
HD_Wallet
bip49w
=
BIP49Util
.
getInstance
(
context
).
getWallet
();
...
...
app/src/main/java/com/samourai/wallet/util/AppUtil.java
View file @
cbddafb6
...
...
@@ -114,13 +114,6 @@ public class AppUtil {
}
*/
try
{
PayloadUtil
.
getInstance
(
context
).
wipe
();
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
}
BIP49Util
.
getInstance
(
context
).
reset
();
BIP84Util
.
getInstance
(
context
).
reset
();
BIP47Util
.
getInstance
(
context
).
reset
();
...
...
@@ -155,6 +148,14 @@ public class AppUtil {
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
}
try
{
PayloadUtil
.
getInstance
(
context
).
wipe
();
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
}
}
public
void
restartApp
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment