From 5b508baba3e29bc60a00cfe7cdbc6d2df98b83be Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Fri, 17 May 2024 11:29:43 +0200 Subject: [PATCH] Use String for Advanced Reboot, so translation will be ok --- .../oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java index 2dcd8aaa7..935b9d0e4 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java @@ -52,7 +52,6 @@ public class FeatureEnabler extends XposedMods { private int mAdvancedRebootTopMargin; private Paint buttonPaint; private Paint textPaint; - private String buttonText = "Advanced Reboot"; private int centerX; private int centerY; private int radius; @@ -241,6 +240,7 @@ private void drawAdvancedReboot(Canvas canvas, Object param) { float textX = (float) viewWidth / 2; float textY = centerY + radius + 75; + String buttonText = modRes.getString(R.string.advanced_reboot_title); canvas.drawText(buttonText, textX, textY, textPaint); }