mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Color registration buttons correctly <API21
Fixes #6604 Closes #6605 // FREEBIE
This commit is contained in:
parent
6ede47d4f7
commit
1b75d00de5
@ -104,7 +104,6 @@
|
|||||||
android:text="@android:string/cancel"
|
android:text="@android:string/cancel"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:background="@drawable/pill_button"
|
android:background="@drawable/pill_button"
|
||||||
android:backgroundTint="@color/grey_400"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
@ -119,7 +118,6 @@
|
|||||||
android:text="@string/registration_activity__register"
|
android:text="@string/registration_activity__register"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:background="@drawable/pill_button"
|
android:background="@drawable/pill_button"
|
||||||
android:backgroundTint="@color/signal_primary"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user