Futsch1/medTimer

View on GitHub

Showing 4 of 68 total issues

Method touchDivider has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

@SuppressLint("ClickableViewAccessibility")
private View.OnTouchListener touchDivider(MaterialDivider resizeHandle) {
ImageView dividerImageUp = fragmentOverview.findViewById(R.id.dividerImageUp);
ImageView dividerImageDown = fragmentOverview.findViewById(R.id.dividerImageDown);
int colorDown = MaterialColors.getColor(resizeHandle, com.google.android.material.R.attr.colorPrimary);

    Method onEntityLoaded has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    override fun onEntityLoaded(entity: Medicine, fragmentView: View): Boolean {
    fragmentView.findViewById<TextInputEditText>(R.id.amountLeft)
    .setText(MedicineHelper.formatAmount(entity.amount, ""))
    fragmentView.findViewById<TextInputEditText>(R.id.amountLeft).addDoubleValidator()
     
     

      Method onChildDrawOver has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      public void onChildDrawOver(@NonNull Canvas c, @NonNull RecyclerView recyclerView,
      RecyclerView.ViewHolder viewHolder, float dX, float dY,
      int actionState, boolean isCurrentlyActive) {
      Severity: Major
      Found in app/src/main/java/com/futsch1/medtimer/helpers/SwipeHelper.java - About 50 mins to fix

        Method clearCanvas has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        private void clearCanvas(Canvas c, float left, float top, float right, float bottom) {
        Severity: Minor
        Found in app/src/main/java/com/futsch1/medtimer/helpers/SwipeHelper.java - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language