Skip to content

Commit

Permalink
Use String for Advanced Reboot, so translation will be ok
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed May 17, 2024
1 parent 64857c3 commit 5b508ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 5b508ba

Please sign in to comment.