forked from mirror/monocles_chat_clean
Code cleanup
This commit is contained in:
parent
c009b309c4
commit
74fef6ed68
1 changed files with 3 additions and 6 deletions
|
@ -18,25 +18,20 @@ import android.view.ViewGroup;
|
|||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
import androidx.viewpager.widget.PagerAdapter;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.HashSet;
|
||||
import java.util.UUID;
|
||||
|
||||
import eu.siacs.conversations.Config;
|
||||
import eu.siacs.conversations.R;
|
||||
import eu.siacs.conversations.databinding.ActivityWelcomeBinding;
|
||||
import eu.siacs.conversations.entities.Account;
|
||||
import eu.siacs.conversations.persistance.FileBackend;
|
||||
import eu.siacs.conversations.services.XmppConnectionService;
|
||||
import eu.siacs.conversations.utils.CryptoHelper;
|
||||
import eu.siacs.conversations.utils.Compatibility;
|
||||
import eu.siacs.conversations.utils.InstallReferrerUtils;
|
||||
import eu.siacs.conversations.utils.SignupUtils;
|
||||
|
@ -56,6 +51,8 @@ import static eu.siacs.conversations.utils.PermissionUtils.allGranted;
|
|||
import static eu.siacs.conversations.utils.PermissionUtils.writeGranted;
|
||||
import static eu.siacs.conversations.xml.Namespace.CHAT_STATES;
|
||||
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||
|
||||
public class WelcomeActivity extends XmppActivity implements XmppConnectionService.OnAccountCreated, XmppConnectionService.OnAccountUpdate, KeyChainAliasCallback {
|
||||
|
||||
private static final int REQUEST_IMPORT_BACKUP = 0x63fb;
|
||||
|
@ -325,7 +322,7 @@ public class WelcomeActivity extends XmppActivity implements XmppConnectionServi
|
|||
message = getString(R.string.error);
|
||||
}
|
||||
Log.d(Config.LOGTAG, "STRING value " + title);
|
||||
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
final MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);
|
||||
builder.setTitle(title);
|
||||
builder.setMessage(message);
|
||||
builder.setNeutralButton(getString(R.string.ok), null);
|
||||
|
|
Loading…
Add table
Reference in a new issue