Migrate to CompoundButton
Switch and SwitchCompat are both CompoundButton. Using CompoundButton in Java will helps migration in the future. Bug: 306658427 Test: manual - on affected pages Change-Id: I7cdc2601879a85d33f77239e38263320d5a6984e
This commit is contained in:
@@ -35,7 +35,6 @@ import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||
import android.widget.Switch;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
@@ -45,7 +44,7 @@ import com.android.settings.R;
|
||||
public class TareHomePage extends Activity {
|
||||
private static final String TAG = "TareHomePage";
|
||||
|
||||
private Switch mOnSwitch;
|
||||
private CompoundButton mOnSwitch;
|
||||
private Button mRevButton;
|
||||
private TextView mAlarmManagerView;
|
||||
private TextView mJobSchedulerView;
|
||||
|
||||
Reference in New Issue
Block a user