2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/21776 - Remove reductant SAM constructor

This commit is contained in:
Gabriel Luong 2021-10-07 13:21:51 -04:00 committed by mergify[bot]
parent 4bcb6d7796
commit 5fbd63386d
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,6 @@ package org.mozilla.fenix.home.mozonline
import android.app.Activity import android.app.Activity
import android.content.Context import android.content.Context
import android.content.DialogInterface
import android.text.SpannableString import android.text.SpannableString
import android.text.Spanned import android.text.Spanned
import android.text.method.LinkMovementMethod import android.text.method.LinkMovementMethod
@ -46,13 +45,13 @@ fun showPrivacyPopWindow(context: Context, activity: Activity) {
val builder = AlertDialog.Builder(activity) val builder = AlertDialog.Builder(activity)
.setPositiveButton( .setPositiveButton(
context.getString(R.string.privacy_notice_positive_button), context.getString(R.string.privacy_notice_positive_button),
DialogInterface.OnClickListener { _, _ -> { _, _ ->
context.settings().shouldShowPrivacyPopWindow = false context.settings().shouldShowPrivacyPopWindow = false
} }
) )
.setNeutralButton( .setNeutralButton(
context.getString(R.string.privacy_notice_neutral_button), context.getString(R.string.privacy_notice_neutral_button),
DialogInterface.OnClickListener { _, _ -> exitProcess(0) } { _, _ -> exitProcess(0) }
) )
.setTitle(context.getString(R.string.privacy_notice_title)) .setTitle(context.getString(R.string.privacy_notice_title))
.setMessage(messageSpannable) .setMessage(messageSpannable)

View File

@ -69,7 +69,7 @@ class SitePermissionsExceptionsFragment :
liveData.observe( liveData.observe(
viewLifecycleOwner, viewLifecycleOwner,
Observer<PagedList<SitePermissions>> { {
if (it.isEmpty()) { if (it.isEmpty()) {
showEmptyListMessage() showEmptyListMessage()
} else { } else {