SeekBarSummaryPreference.java revision 8fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15
18fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck/*
28fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * Copyright (C) 2011 The Android Open Source Project
38fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck *
48fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * Licensed under the Apache License, Version 2.0 (the "License");
58fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * you may not use this file except in compliance with the License.
68fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * You may obtain a copy of the License at
78fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck *
88fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck *      http://www.apache.org/licenses/LICENSE-2.0
98fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck *
108fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * Unless required by applicable law or agreed to in writing, software
118fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * distributed under the License is distributed on an "AS IS" BASIS,
128fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * See the License for the specific language governing permissions and
148fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck * limitations under the License.
158fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck */
168fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
178fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckpackage com.android.browser.preferences;
188fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
198fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckimport android.content.Context;
208fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckimport android.preference.SeekBarPreference;
218fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckimport android.util.AttributeSet;
228fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckimport android.widget.SeekBar;
238fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
248fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reckpublic class FontSizePreference extends SeekBarPreference {
258fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
268fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    public FontSizePreference(
278fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck            Context context, AttributeSet attrs, int defStyle) {
288fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck        super(context, attrs, defStyle);
298fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    }
308fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
318fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    public FontSizePreference(Context context, AttributeSet attrs) {
328fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck        super(context, attrs);
338fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    }
348fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
358fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    public FontSizePreference(Context context) {
368fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck        super(context);
378fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    }
388fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
398fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    @Override
408fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    public void onStartTrackingTouch(SeekBar seekBar) {
418fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck        // Intentionally blank - prevent super.onStartTrackingTouch from running
428fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    }
438fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
448fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    @Override
458fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    public void onStopTrackingTouch(SeekBar seekBar) {
468fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck        // Intentionally blank - prevent onStopTrackingTouch from running
478fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck    }
488fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck
498fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15John Reck}
50