mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 03:00:47 +00:00
Color registration buttons correctly <API21
Fixes #6604 Closes #6605 // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
6ede47d4f7
commit
1b75d00de5
@@ -3,8 +3,9 @@ package org.thoughtcrime.securesms;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.graphics.PorterDuff;
|
||||
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.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
@@ -95,8 +96,10 @@ public class RegistrationActivity extends BaseActionBarActivity {
|
||||
this.informationToggle = findViewById(R.id.information_link_container);
|
||||
this.informationToggleText = (TextView) findViewById(R.id.information_label);
|
||||
|
||||
DrawableCompat.setTint(this.createButton.getBackground(), getResources().getColor(R.color.signal_primary));
|
||||
DrawableCompat.setTint(this.skipButton.getBackground(), getResources().getColor(R.color.grey_400));
|
||||
this.createButton.getBackground().setColorFilter(ContextCompat.getColor(this, R.color.signal_primary),
|
||||
PorterDuff.Mode.MULTIPLY);
|
||||
this.skipButton.getBackground().setColorFilter(ContextCompat.getColor(this, R.color.grey_400),
|
||||
PorterDuff.Mode.MULTIPLY);
|
||||
|
||||
this.countryCode.addTextChangedListener(new CountryCodeChangedListener());
|
||||
this.number.addTextChangedListener(new NumberChangedListener());
|
||||
|
||||
Reference in New Issue
Block a user