Skip to content

Commit

Permalink
[DashboardFragment] Use transparent instead of colorSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
OffRange committed Jul 19, 2023
1 parent a0162c3 commit ef07805
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import androidx.slidingpanelayout.widget.SlidingPaneLayout;

import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.color.MaterialColors;

import de.davis.passwordmanager.R;
import de.davis.passwordmanager.dashboard.DashboardAdapter;
Expand Down Expand Up @@ -272,7 +271,7 @@ public boolean onDependentViewChanged(
}

private void setAppBarLayoutColor(AppBarLayout appBarLayout) {
appBarLayout.setBackgroundColor(MaterialColors.getColor(appBarLayout, com.google.android.material.R.attr.colorSurface));
appBarLayout.setBackgroundColor(appBarLayout.getContext().getColor(android.R.color.transparent));

// Remove AppBarLayout elevation shadow
appBarLayout.setElevation(0);
Expand Down

0 comments on commit ef07805

Please sign in to comment.