Add logs button to Login

This commit is contained in:
Jannis Mattheis
2018-11-12 17:42:06 +01:00
parent 0e2260a031
commit 4b1890202c
2 changed files with 15 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ import com.github.gotify.client.model.Client;
import com.github.gotify.client.model.VersionInfo;
import com.github.gotify.init.InitializationActivity;
import com.github.gotify.log.Log;
import com.github.gotify.log.LogsActivity;
import com.github.gotify.log.UncaughtExceptionHandler;
import com.squareup.okhttp.HttpUrl;
import java.io.InputStream;
@@ -118,6 +119,11 @@ public class LoginActivity extends AppCompatActivity {
.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)
void toggleShowAdvanced() {
String selectedCertName =

View File

@@ -16,6 +16,15 @@
tools:context=".login.LoginActivity"
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
android:id="@+id/checkurl_progress"
android:layout_width="49dp"