Refactoring

This commit is contained in:
M66B
2019-10-01 10:13:22 +02:00
parent 2277058a39
commit e250c4d743
9 changed files with 12 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);
}