Skip to content

Commit

Permalink
Fix Reddit link
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas7erMind committed Mar 20, 2021
1 parent a7c42ca commit d23e645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void onClick(View view) {
ivReddit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Uri uri = Uri.parse(getResources().getString(R.string.twitterLink));
Uri uri = Uri.parse(getResources().getString(R.string.redditLink));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ public void run() {

updateMiningButtonState();

if(!message.isEmpty())
if(message != null && !message.isEmpty())
appendLogOutputTextWithDate("Mining Service Error: " + message);
});
}
Expand Down
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 @@ -35,6 +35,7 @@
<string name="discordLink">https://discord.gg/djAFVvy</string>
<string name="mediumLink">https://medium.com/scala-network</string>
<string name="twitterLink">https://twitter.com/scalahq</string>
<string name="redditLink">https://www.reddit.com/r/ScalaNetwork/</string>
<string name="telegramLink">https://t.me/scalaofficial</string>
<string name="emailLink">mailto:[email protected]</string>
<string name="ScalaLinkClean">https://scalaproject.io</string>
Expand Down

0 comments on commit d23e645

Please sign in to comment.