79425821

Date: 2025-02-09 23:02:51
Score: 3.5
Natty:
Report link

The suggested answer solves the problem partially: it does offset the app's view, but it also erases the system icons. enter image description here

I don't want them to be erased, because they might have a value for a user, and this is how it was in all Android versions up to API 34.

My solution looks more like a hack but it fixes the problem and makes the app look like in API 34 and all prior version

        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM){
           binding.rootToolbar.setPadding(0,
           binding.rootToolbar.minimumHeight/2, 0, 0)
        }

Yes, it's ugly but it works and now I have what I wanted: Thanks Google for breaking the code again.

enter image description here

@atzarul, if you know what else I can tweak in API 35 to return to the old look, please share

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): please share
  • RegEx Blacklisted phrase (1): I can tweak in API 35 to return to the old look, please
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @atzarul
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Oleg Gryb