mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-10 19:13:03 +02:00
Refactoring
This commit is contained in:
@@ -91,7 +91,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
private EditText etRealm;
|
||||
|
||||
private EditText etName;
|
||||
private ButtonColor btnColor;
|
||||
private ViewButtonColor btnColor;
|
||||
private TextView tvColorPro;
|
||||
|
||||
private Button btnAdvanced;
|
||||
|
||||
@@ -82,7 +82,7 @@ public class FragmentIdentity extends FragmentBase {
|
||||
private Spinner spAccount;
|
||||
|
||||
private EditText etDisplay;
|
||||
private ButtonColor btnColor;
|
||||
private ViewButtonColor btnColor;
|
||||
private TextView tvColorPro;
|
||||
private EditText etSignature;
|
||||
private Button btnHtml;
|
||||
|
||||
@@ -67,7 +67,7 @@ public class FragmentPop extends FragmentBase {
|
||||
private TextInputLayout tilPassword;
|
||||
|
||||
private EditText etName;
|
||||
private ButtonColor btnColor;
|
||||
private ViewButtonColor btnColor;
|
||||
private TextView tvColorPro;
|
||||
|
||||
private CheckBox cbSynchronize;
|
||||
|
||||
@@ -110,7 +110,7 @@ public class FragmentRule extends FragmentBase {
|
||||
private NumberPicker npDuration;
|
||||
private CheckBox cbScheduleEnd;
|
||||
|
||||
private ButtonColor btnColor;
|
||||
private ViewButtonColor btnColor;
|
||||
|
||||
private Spinner spTarget;
|
||||
private CheckBox cbMoveSeen;
|
||||
|
||||
@@ -30,18 +30,18 @@ import android.view.View;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import androidx.core.graphics.ColorUtils;
|
||||
|
||||
public class ButtonColor extends AppCompatButton {
|
||||
public class ViewButtonColor extends AppCompatButton {
|
||||
private int color = Color.TRANSPARENT;
|
||||
|
||||
public ButtonColor(Context context) {
|
||||
public ViewButtonColor(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public ButtonColor(Context context, AttributeSet attrs) {
|
||||
public ViewButtonColor(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public ButtonColor(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
public ViewButtonColor(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user