Add logs button to Login
This commit is contained in:
@@ -34,6 +34,7 @@ import com.github.gotify.client.model.Client;
|
|||||||
import com.github.gotify.client.model.VersionInfo;
|
import com.github.gotify.client.model.VersionInfo;
|
||||||
import com.github.gotify.init.InitializationActivity;
|
import com.github.gotify.init.InitializationActivity;
|
||||||
import com.github.gotify.log.Log;
|
import com.github.gotify.log.Log;
|
||||||
|
import com.github.gotify.log.LogsActivity;
|
||||||
import com.github.gotify.log.UncaughtExceptionHandler;
|
import com.github.gotify.log.UncaughtExceptionHandler;
|
||||||
import com.squareup.okhttp.HttpUrl;
|
import com.squareup.okhttp.HttpUrl;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@@ -118,6 +119,11 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
.handleInUIThread(this, onValidUrl(fixedUrl), onInvalidUrl(fixedUrl));
|
.handleInUIThread(this, onValidUrl(fixedUrl), onInvalidUrl(fixedUrl));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OnClick(R.id.open_logs)
|
||||||
|
public void openLogs() {
|
||||||
|
startActivity(new Intent(this, LogsActivity.class));
|
||||||
|
}
|
||||||
|
|
||||||
@OnClick(R.id.advanced_settings)
|
@OnClick(R.id.advanced_settings)
|
||||||
void toggleShowAdvanced() {
|
void toggleShowAdvanced() {
|
||||||
String selectedCertName =
|
String selectedCertName =
|
||||||
|
|||||||
@@ -16,6 +16,15 @@
|
|||||||
tools:context=".login.LoginActivity"
|
tools:context=".login.LoginActivity"
|
||||||
tools:layout_editor_absoluteY="25dp">
|
tools:layout_editor_absoluteY="25dp">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/open_logs"
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:background="@null"
|
||||||
|
android:text="@string/logs"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/checkurl_progress"
|
android:id="@+id/checkurl_progress"
|
||||||
android:layout_width="49dp"
|
android:layout_width="49dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user