Skip to content

Commit

Permalink
Fix #196, add power down warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
bxute committed Sep 21, 2018
1 parent 9375b33 commit d1b0aad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,15 @@ public void onUserRewards(String _sbdReward, String _steemReward, String _reward
finalVestsReward = _rewardVests;
try {
if (sbdReward > 0) {
rewardPanelText.append(finalSBDReward);
rewardPanelText
.append(finalSBDReward)
.append(" ");
rewardExists = true;
}
if (steemReward > 0) {
rewardPanelText.append(finalSteemReward);
rewardPanelText
.append(finalSteemReward)
.append(" ");
rewardExists = true;
}
if (vestsReward > 0) {
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/res/layout/activity_power_down.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<TextView
android:layout_below="@+id/continueBtn"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textSize="12sp"
android:layout_marginTop="16dp"
android:textColor="@color/Black38"
android:text="@string/power_down_warning"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</RelativeLayout>

</RelativeLayout>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
<string name="community_save_progress_mesaage">Saving your communities...</string>
<string name="app_exit_alert_message">Exit?</string>
<string name="comment_fetch_error_text">Error occurred while fetching comments.</string>
<string name="power_down_warning">Leaving less than 5 STEEM POWER in your account is not recommended and can leave your account in a unusable state.</string>
</resources>

0 comments on commit d1b0aad

Please sign in to comment.