Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two seekbars, one doesn't update. #47

Open
BrandInMotion opened this issue Feb 10, 2017 · 1 comment
Open

Two seekbars, one doesn't update. #47

BrandInMotion opened this issue Feb 10, 2017 · 1 comment

Comments

@BrandInMotion
Copy link

Hi, I have 2 seekbars but only the second one updates when I use the slider. The first one allows me to move the slider but doesn't update the value. Here is my xml for the preferences layout.

>

<com.pavelsikun.seekbarpreference.SeekBarPreference
    android:key="distance_from_target"
    android:title="Distance from pin"
    android:summary="Distance from location to start playing"
    android:enabled="true"
    android:defaultValue="10"

    sample:msbp_minValue="10"
    sample:msbp_maxValue="100"
    sample:msbp_interval="10"
    sample:msbp_measurementUnit="meters"
    sample:msbp_dialogEnabled="false"/>

<com.pavelsikun.seekbarpreference.SeekBarPreference
    android:key="poll_time"
    android:title="Update GPS every"
    android:summary="How often the GPS location is updated."
    android:enabled="true"
    android:defaultValue="20"

    sample:msbp_minValue="20"
    sample:msbp_maxValue="120"
    sample:msbp_interval="10"
    sample:msbp_measurementUnit="seconds"
    sample:msbp_dialogEnabled="false"/>
@delletenebre
Copy link

I have same problem. Temp solution: add any preference before SeekBarPreference:

<Preference
        android:visibility="gone" />

<com.pavelsikun.seekbarpreference.SeekBarPreference
    android:key="distance_from_target"
    android:title="Distance from pin"
    android:summary="Distance from location to start playing"
    ... />

<com.pavelsikun.seekbarpreference.SeekBarPreference
    ... />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants