mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-05-09 16:39:42 +02:00
Use correct parent theme, remove now useless wrapping
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
6fc3a29c3c
commit
2b95b69650
|
|
@ -8,7 +8,6 @@ import android.content.Intent
|
|||
import android.os.Bundle
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import androidx.appcompat.view.ContextThemeWrapper
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.zeapo.pwdstore.R
|
||||
import com.zeapo.pwdstore.UserPreference
|
||||
|
|
@ -57,7 +56,7 @@ open class GitOperationActivity : BaseGitActivity() {
|
|||
*/
|
||||
private fun syncRepository(operation: Int) {
|
||||
if (serverUser.isEmpty() || serverUrl.isEmpty() || hostname.isEmpty())
|
||||
MaterialAlertDialogBuilder(ContextThemeWrapper(this, R.style.AppTheme))
|
||||
MaterialAlertDialogBuilder(this)
|
||||
.setMessage(getString(R.string.set_information_dialog_text))
|
||||
.setPositiveButton(getString(R.string.dialog_positive)) { _, _ ->
|
||||
val intent = Intent(this, UserPreference::class.java)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<item name="background">@color/primary_color</item>
|
||||
</style>
|
||||
|
||||
<style name="NoBackgroundTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<style name="NoBackgroundTheme" parent="@style/AppTheme">
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
<item name="android:backgroundDimEnabled">true</item>
|
||||
<item name="android:navigationBarColor">@color/navigation_bar_color</item>
|
||||
|
|
|
|||
Loading…
Reference in a new issue