action bar, percentage, minesweeper letter heads, points adjustable in config

This commit is contained in:
LunarAkai 2024-03-25 13:08:07 +01:00
commit 6c777a50e4
7 changed files with 123 additions and 49 deletions

View file

@ -28,5 +28,11 @@ public class MinecleanerStringUtil {
}
return timeString.toString();
}
public static String percentageString(int whatPercentage, int fromPercentage) {
float percent = (float) whatPercentage/fromPercentage;
percent = percent * 100;
String percentageString = String.format("%.1f", percent);
return percentageString + "%";
}
}