3 Commits
Author SHA1 Message Date
stan220 6f4ef43481 Fix resume. 2020-12-24 16:09:50 +03:00
stan220 dfe5eae706 Added Github action. 2020-12-24 13:32:57 +03:00
stan220 192b62359e Added sources. 2020-12-24 13:05:50 +03:00
3 changed files with 22 additions and 8 deletions
@@ -1,4 +1,4 @@
name: Android CI
name: Android CI - Publish Apk
on:
push:
@@ -10,13 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Debug APK Publisher
@@ -6,7 +6,6 @@ import android.os.AsyncTask;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
@@ -51,8 +50,14 @@ public class MainActivity extends AppCompatActivity {
}));
System.out.println("App started!!!");
new DownloadFilesTask(this).execute();
}
@Override
protected void onResume() {
super.onResume();
System.out.println("App resumed!!!");
new DownloadFilesTask(this).execute();
}
public void onSwitchClick(View view) {
@@ -170,7 +175,7 @@ public class MainActivity extends AppCompatActivity {
switchAlisa.setChecked(false);
}
Toast.makeText(context, "Состояние обновлено!", Toast.LENGTH_LONG).show();
Toast.makeText(context, "Статус обновлён!", Toast.LENGTH_LONG).show();
}
}
+5 -2
View File
@@ -5,7 +5,9 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
android:foregroundGravity="fill"
android:orientation="vertical"
android:padding="20dp">
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switchTab"
@@ -34,7 +36,8 @@
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="586dp"
android:layout_height="538dp"
android:layout_gravity="fill"
android:fadeScrollbars="false"
android:gravity="bottom"
android:isScrollContainer="true"