Skip to content
Snippets Groups Projects
Commit 3dad038a authored by Smriti Gupta's avatar Smriti Gupta
Browse files

FM: Set the frequency dialog box background color

Default color of text changed in the recent android version.
Set the background color as white so that test would be visible.

Change-Id: I08d8f5969b5e5fb121daf89a9652869c6f1308a0
CRs-fixed: 1056668
parent 08cc0b9e
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ import android.widget.FrameLayout; ...@@ -32,6 +32,7 @@ import android.widget.FrameLayout;
import com.caf.fmradio.R; import com.caf.fmradio.R;
import android.widget.NumberPicker; import android.widget.NumberPicker;
import android.widget.NumberPicker.OnValueChangeListener; import android.widget.NumberPicker.OnValueChangeListener;
import android.graphics.Color;
/** /**
* A view for selecting the frequency * A view for selecting the frequency
* *
...@@ -85,6 +86,7 @@ public class FrequencyPicker extends FrameLayout { ...@@ -85,6 +86,7 @@ public class FrequencyPicker extends FrameLayout {
mMHzPicker = (NumberPicker) findViewById(R.id.mhz); mMHzPicker = (NumberPicker) findViewById(R.id.mhz);
if (mMHzPicker != null) { if (mMHzPicker != null) {
mMHzPicker.setOnLongPressUpdateInterval(100); mMHzPicker.setOnLongPressUpdateInterval(100);
mMHzPicker.setBackgroundColor(Color.WHITE);
mMHzPicker.setOnValueChangedListener(new OnValueChangeListener() { mMHzPicker.setOnValueChangedListener(new OnValueChangeListener() {
public void onValueChange(NumberPicker picker, int oldVal, int newVal) { public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
...@@ -100,6 +102,7 @@ public class FrequencyPicker extends FrameLayout { ...@@ -100,6 +102,7 @@ public class FrequencyPicker extends FrameLayout {
mKHzPicker = (NumberPicker) findViewById(R.id.khz); mKHzPicker = (NumberPicker) findViewById(R.id.khz);
if (mKHzPicker != null) { if (mKHzPicker != null) {
mKHzPicker.setOnLongPressUpdateInterval(100); mKHzPicker.setOnLongPressUpdateInterval(100);
mKHzPicker.setBackgroundColor(Color.WHITE);
mKHzPicker.setOnValueChangedListener(new OnValueChangeListener() { mKHzPicker.setOnValueChangedListener(new OnValueChangeListener() {
public void onValueChange(NumberPicker picker, int oldVal, int newVal) { public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
mKhz = newVal; mKhz = newVal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment