diff --git a/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionActivity.java index 0d9f4d26..4401d0b3 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/exception/ExceptionActivity.java @@ -19,6 +19,7 @@ import java.util.Collections; import it.niedermann.android.util.ClipboardUtil; import it.niedermann.nextcloud.exception.ExceptionUtil; import it.niedermann.owncloud.notes.BuildConfig; +import it.niedermann.owncloud.notes.NotesApplication; import it.niedermann.owncloud.notes.R; import it.niedermann.owncloud.notes.databinding.ActivityExceptionBinding; import it.niedermann.owncloud.notes.exception.tips.TipsAdapter; @@ -53,6 +54,11 @@ public class ExceptionActivity extends AppCompatActivity { binding.copy.setOnClickListener((v) -> ClipboardUtil.copyToClipboard(this, getString(R.string.simple_exception), "```\n" + debugInfos + "\n```")); binding.close.setOnClickListener((v) -> finish()); + NotesApplication.brandingUtil().platform.themeStatusBar(this); + NotesApplication.brandingUtil().material.themeToolbar(binding.toolbar); + NotesApplication.brandingUtil().material.colorMaterialButtonPrimaryBorderless(binding.close); + NotesApplication.brandingUtil().material.colorMaterialButtonPrimaryFilled(binding.copy); + adapter.setThrowables(Collections.singletonList(throwable)); } diff --git a/app/src/main/res/layout/activity_exception.xml b/app/src/main/res/layout/activity_exception.xml index f7e26d96..dcac31e2 100644 --- a/app/src/main/res/layout/activity_exception.xml +++ b/app/src/main/res/layout/activity_exception.xml @@ -81,7 +81,7 @@ android:orientation="horizontal" android:weightSum="1.0"> -