-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve status bar feedback when starting bwt, syncing and scanning
- Loading branch information
Showing
5 changed files
with
61 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/com/sparrowwallet/sparrow/event/StatusEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
package com.sparrowwallet.sparrow.event; | ||
|
||
public class StatusEvent { | ||
public static final int DEFAULT_SHOW_DURATION_SECS = 20; | ||
|
||
private final String status; | ||
private final int showDuration; | ||
|
||
public StatusEvent(String status) { | ||
this(status, DEFAULT_SHOW_DURATION_SECS); | ||
} | ||
|
||
public StatusEvent(String status, int showDuration) { | ||
this.status = status; | ||
this.showDuration = showDuration; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public int getShowDuration() { | ||
return showDuration; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters