Use correct parent theme, remove now useless wrapping

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-12 03:39:24 +05:30
parent 6fc3a29c3c
commit 2b95b69650
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -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>