Skip to content

Commit

Permalink
CHANGELOG: QS Tile vertical layout: fixed the scroll bug
Browse files Browse the repository at this point in the history
  • Loading branch information
siavash79 committed Jan 6, 2025
1 parent a2b2c52 commit 434203a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/edit2MakeNewCanary
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Editing this file will trigger the build script for a new canary..
Editing this file will trigger the build script for a new canary.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sh.siava.pixelxpert.modpacks.systemui;

import static android.view.View.TEXT_ALIGNMENT_CENTER;
import static de.robv.android.xposed.XposedHelpers.callMethod;
import static de.robv.android.xposed.XposedHelpers.findClassIfExists;
import static de.robv.android.xposed.XposedHelpers.findMethodExactIfExists;
import static de.robv.android.xposed.XposedHelpers.getIntField;
import static de.robv.android.xposed.XposedHelpers.getObjectField;
Expand Down Expand Up @@ -235,9 +235,9 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpParam) throws Th
thisQSTileView.setOrientation(LinearLayout.VERTICAL);

((TextView) getObjectField(param.thisObject, "label"))
.setGravity(Gravity.CENTER_HORIZONTAL);
.setTextAlignment(TEXT_ALIGNMENT_CENTER);
((TextView) getObjectField(param.thisObject, "secondaryLabel"))
.setGravity(Gravity.CENTER_HORIZONTAL);
.setTextAlignment(TEXT_ALIGNMENT_CENTER);

LinearLayout horizontalLinearLayout = new LinearLayout(mContext);
horizontalLinearLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sh.siava.pixelxpert.PixelXpert;
import sh.siava.rangesliderpreference.RangeSliderPreference;

/** @noinspection unused*/
public class PXPreferences {

private static final ExtendedSharedPreferences prefs = ExtendedSharedPreferences.from(PixelXpert.get()
Expand Down

0 comments on commit 434203a

Please sign in to comment.