mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Workaround constraint layout bug
This commit is contained in:
@@ -737,11 +737,11 @@ public class Helper {
|
||||
}
|
||||
|
||||
static void hide(View view) {
|
||||
view.setPadding(0, 0, 0, 0);
|
||||
view.setPadding(0, 1, 0, 0);
|
||||
|
||||
ViewGroup.LayoutParams lparam = view.getLayoutParams();
|
||||
lparam.width = 0;
|
||||
lparam.height = 0;
|
||||
lparam.height = 1;
|
||||
if (lparam instanceof ConstraintLayout.LayoutParams)
|
||||
((ConstraintLayout.LayoutParams) lparam).setMargins(0, 0, 0, 0);
|
||||
view.setLayoutParams(lparam);
|
||||
|
||||
Reference in New Issue
Block a user