content: /*
   * Copyright (C) 2025 Răzvan Albu
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program. If not, see <http://www.gnu.org/licenses/>
   */
  
  package com.stario.launcher.ui.recyclers;
  
  import android.content.Context;
  
  import androidx.annotation.NonNull;
  
  import com.google.android.material.divider.MaterialDividerItemDecoration;
  import com.stario.launcher.ui.Measurements;
  
  public class DividerItemDecorator extends MaterialDividerItemDecoration {
      private static final int THICKNESS = 2;
  
      public DividerItemDecorator(@NonNull Context context, int orientation) {
          this(context, orientation, Measurements.dpToPx(THICKNESS));
      }
  
      public DividerItemDecorator(@NonNull Context context, int orientation, int thickness) {
          super(context, orientation);
  
          setDividerColor(0);
          setDividerThickness(thickness);
          setLastItemDecorated(false);
      }
  }