From d23e645fe02e70500ba24890eba1b160e123bf23 Mon Sep 17 00:00:00 2001 From: Mas7erMind Date: Sat, 20 Mar 2021 18:55:04 -0400 Subject: [PATCH] Fix Reddit link --- .../main/java/io/scalaproject/androidminer/AboutFragment.java | 2 +- .../main/java/io/scalaproject/androidminer/MainActivity.java | 2 +- app/src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/scalaproject/androidminer/AboutFragment.java b/app/src/main/java/io/scalaproject/androidminer/AboutFragment.java index c853e19..dc2d542 100644 --- a/app/src/main/java/io/scalaproject/androidminer/AboutFragment.java +++ b/app/src/main/java/io/scalaproject/androidminer/AboutFragment.java @@ -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); } diff --git a/app/src/main/java/io/scalaproject/androidminer/MainActivity.java b/app/src/main/java/io/scalaproject/androidminer/MainActivity.java index 2884f7c..923d711 100644 --- a/app/src/main/java/io/scalaproject/androidminer/MainActivity.java +++ b/app/src/main/java/io/scalaproject/androidminer/MainActivity.java @@ -2853,7 +2853,7 @@ public void run() { updateMiningButtonState(); - if(!message.isEmpty()) + if(message != null && !message.isEmpty()) appendLogOutputTextWithDate("Mining Service Error: " + message); }); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 581f226..644a82e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,6 +35,7 @@ https://discord.gg/djAFVvy https://medium.com/scala-network https://twitter.com/scalahq + https://www.reddit.com/r/ScalaNetwork/ https://t.me/scalaofficial mailto:hello@scalaproject.io https://scalaproject.io