|
|
@ -3,8 +3,9 @@ package org.thoughtcrime.securesms;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
|
|
|
|
import android.graphics.PorterDuff;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.support.v4.graphics.drawable.DrawableCompat;
|
|
|
|
import android.support.v4.content.ContextCompat;
|
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
|
import android.text.Editable;
|
|
|
|
import android.text.Editable;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
@ -95,8 +96,10 @@ public class RegistrationActivity extends BaseActionBarActivity {
|
|
|
|
this.informationToggle = findViewById(R.id.information_link_container);
|
|
|
|
this.informationToggle = findViewById(R.id.information_link_container);
|
|
|
|
this.informationToggleText = (TextView) findViewById(R.id.information_label);
|
|
|
|
this.informationToggleText = (TextView) findViewById(R.id.information_label);
|
|
|
|
|
|
|
|
|
|
|
|
DrawableCompat.setTint(this.createButton.getBackground(), getResources().getColor(R.color.signal_primary));
|
|
|
|
this.createButton.getBackground().setColorFilter(ContextCompat.getColor(this, R.color.signal_primary),
|
|
|
|
DrawableCompat.setTint(this.skipButton.getBackground(), getResources().getColor(R.color.grey_400));
|
|
|
|
PorterDuff.Mode.MULTIPLY);
|
|
|
|
|
|
|
|
this.skipButton.getBackground().setColorFilter(ContextCompat.getColor(this, R.color.grey_400),
|
|
|
|
|
|
|
|
PorterDuff.Mode.MULTIPLY);
|
|
|
|
|
|
|
|
|
|
|
|
this.countryCode.addTextChangedListener(new CountryCodeChangedListener());
|
|
|
|
this.countryCode.addTextChangedListener(new CountryCodeChangedListener());
|
|
|
|
this.number.addTextChangedListener(new NumberChangedListener());
|
|
|
|
this.number.addTextChangedListener(new NumberChangedListener());
|
|
|
|