mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 13:58:20 +03:00
BraveNewPipeLegacy: (Kitkat) fix GridLayout Alignment for KitKat for search filter dialogs
This commit is contained in:
parent
5dfe4a8366
commit
c897ec9564
1 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
package org.schabi.newpipe.fragments.list.search.filter;
|
package org.schabi.newpipe.fragments.list.search.filter;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.os.Build;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -276,7 +277,11 @@ public class SearchFilterDialogGenerator extends BaseSearchFilterUiDialogGenerat
|
||||||
setDefaultMargin(layoutParams);
|
setDefaultMargin(layoutParams);
|
||||||
|
|
||||||
if (doColumnSpan) {
|
if (doColumnSpan) {
|
||||||
layoutParams.columnSpec = GridLayout.spec(0, 2, 1.0f);
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
|
layoutParams.columnSpec = GridLayout.spec(0, 2, 1.0f);
|
||||||
|
} else {
|
||||||
|
layoutParams.columnSpec = GridLayout.spec(0, 2, GridLayout.FILL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return layoutParams;
|
return layoutParams;
|
||||||
|
|
Loading…
Add table
Reference in a new issue