btelman96/letsrobot-android

View on GitHub
app/src/main/java/tv/letsrobot/controller/android/ui/settings/SwitchBar.java

Summary

Maintainability
A
0 mins
Test Coverage

SwitchBar has 26 methods (exceeds 20 allowed). Consider refactoring.
Wontfix

public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedChangeListener {

    public interface OnSwitchChangeListener {
        /**
         * Called when the checked state of the Switch has changed.

    File SwitchBar.java has 268 lines of code (exceeds 250 allowed). Consider refactoring.
    Wontfix

    /*
     * Copyright (C) 2014 The Android Open Source Project
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.

      Method init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

          public void init(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes){
              LayoutInflater.from(context).inflate(R.layout.switch_bar, this);
      
              final TypedArray a = context.obtainStyledAttributes(attrs, XML_ATTRIBUTES);
              int id = 0;

        There are no issues that match your filters.

        Category
        Status