]> Git Repo - Android-Verus.git/commitdiff
now sets the stop button if it errors
authorjesse <[email protected]>
Wed, 21 Oct 2020 19:18:02 +0000 (15:18 -0400)
committerjesse <[email protected]>
Wed, 21 Oct 2020 19:18:02 +0000 (15:18 -0400)
.idea/gradle.xml
app/src/main/java/com/verus/miner/MainActivity.java

index 23a89bbb6ca829a47211d20c8b11960088ea4950..b617266ab6a61e3df316b4496b5649099b08a491 100644 (file)
@@ -5,6 +5,7 @@
     <option name="linkedExternalProjectsSettings">
       <GradleProjectSettings>
         <option name="testRunner" value="PLATFORM" />
+        <option name="disableWrapperSourceDistributionNotification" value="true" />
         <option name="distributionType" value="DEFAULT_WRAPPED" />
         <option name="externalProjectPath" value="$PROJECT_DIR$" />
         <option name="gradleJvm" value="1.8" />
index 7fd1886e42913dfd4ca42a20cb59af94e1096a09..5a9f9ce3f933107b1e5538b67dde18e7f6c0f705 100644 (file)
@@ -98,6 +98,7 @@ public class MainActivity extends AppCompatActivity {
     private Runnable textView = new Runnable() {
         @Override
         public void run() {
+            Button button = (Button)findViewById(R.id.button);
             TextView text = (TextView)findViewById(R.id.LOG);
             String LOG = "";
             if(LOGAll.split("\n").length  > 100) {
@@ -112,7 +113,11 @@ public class MainActivity extends AppCompatActivity {
                 } else {
                     text.setText(LOG);
                 }
+                mining = false;
+                button.setText("Start");
                 Log.e("test",LOG);
+                handler.removeCallbacks(textView);
+
             }
             if (!miner.error().isEmpty()) {
                 LOG += miner.error() + miner.output();
@@ -122,9 +127,11 @@ public class MainActivity extends AppCompatActivity {
                     text.scrollTo(0, text.getLayout().getLineTop(text.getLineCount()) - text.getHeight());
                 } else {
                     text.setText(LOG);
-
                 }
+                mining = false;
+                button.setText("Start");
                 Log.e("test",LOG);
+                handler.removeCallbacks(textView);
             } else {
                 LOG += miner.output();
                 LOGAll += LOG;
This page took 0.028787 seconds and 4 git commands to generate.