diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-16 22:10:06 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-16 22:10:06 +0100 |
commit | 435989fc60c1f94c8a2d3175b8f77cc2ddd3a2f3 (patch) | |
tree | a391c0c76eb4482c8ca438a4807ebbaa2a96b603 /src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java | |
parent | 15d25f36583710afaf5770ce48a03ebdad8050b0 (diff) |
use androidx.appcompat.app.AlertDialog and make AlertDialog final
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java b/src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java index 23c8da480..6c2a5c562 100644 --- a/src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ChannelDiscoveryActivity.java @@ -1,6 +1,5 @@ package de.pixart.messenger.ui; -import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; @@ -17,6 +16,7 @@ import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import android.widget.TextView; +import androidx.appcompat.app.AlertDialog; import androidx.appcompat.widget.Toolbar; import androidx.databinding.DataBindingUtil; @@ -224,7 +224,7 @@ public class ChannelDiscoveryActivity extends XmppActivity implements MenuItem.O joinChannelSearchResult(accounts.get(0), result); } else if (accounts.size() > 0) { final AtomicReference<String> account = new AtomicReference<>(accounts.get(0)); - AlertDialog.Builder builder = new AlertDialog.Builder(this); + final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.choose_account); builder.setSingleChoiceItems(accounts.toArray(new CharSequence[0]), 0, (dialog, which) -> account.set(accounts.get(which))); builder.setPositiveButton(R.string.join, (dialog, which) -> joinChannelSearchResult(account.get(), result)); |