Various fixes and improvements

This commit is contained in:
Karim Abou Zeid 2015-08-03 20:42:16 +02:00
commit 6b68c17ae2
26 changed files with 142 additions and 121 deletions

View file

@ -28,7 +28,7 @@ public class DynamicCheckBox extends AppCompatCheckBox {
}
private void init() {
final int color = ThemeSingleton.get().positiveColor;
final int color = ThemeSingleton.get().positiveColor.getDefaultColor();
MDTintHelper.setTint(this, color);
}
}

View file

@ -28,7 +28,7 @@ public class DynamicEditText extends AppCompatEditText {
}
private void init() {
final int color = ThemeSingleton.get().positiveColor;
final int color = ThemeSingleton.get().positiveColor.getDefaultColor();
MDTintHelper.setTint(this, color);
}
}

View file

@ -42,7 +42,7 @@ public class DynamicSwitch extends SwitchCompat {
}
private void init() {
final int color = ThemeSingleton.get().positiveColor;
final int color = ThemeSingleton.get().positiveColor.getDefaultColor();
setTint(this, color);
}

View file

@ -58,7 +58,7 @@ public class FastScroller extends FrameLayout {
handle = findViewById(R.id.scroll_handle);
bar = findViewById(R.id.scroll_bar);
handle.setEnabled(true);
setPressedHandleColor(ThemeSingleton.get().positiveColor);
setPressedHandleColor(ThemeSingleton.get().positiveColor.getDefaultColor());
setUpBarBackground();
postDelayed(handleHider, HANDLE_HIDE_DELAY);
}