Skip to content

Commit ef07805

Browse files
committed
[DashboardFragment] Use transparent instead of colorSurface
1 parent a0162c3 commit ef07805

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/de/davis/passwordmanager/ui/dashboard/DashboardFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import androidx.slidingpanelayout.widget.SlidingPaneLayout;
2929

3030
import com.google.android.material.appbar.AppBarLayout;
31-
import com.google.android.material.color.MaterialColors;
3231

3332
import de.davis.passwordmanager.R;
3433
import de.davis.passwordmanager.dashboard.DashboardAdapter;
@@ -272,7 +271,7 @@ public boolean onDependentViewChanged(
272271
}
273272

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

277276
// Remove AppBarLayout elevation shadow
278277
appBarLayout.setElevation(0);

0 commit comments

Comments
 (0)