File tree Expand file tree Collapse file tree
app/src/main/java/com/elitedarkkaiser/redmagic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,18 +266,26 @@ class MainActivity : Activity() {
266266 }
267267
268268 private fun chargingModeProfileSummary (): String {
269- val p = getSavedChargingModeProfile()
270- val fanLabel = if (p.fanEnabled) {
271- when (p.fanLevel) {
272- 0 , 1 -> " Quiet"
273- 4 , 5 -> " Turbo"
274- else -> " Balanced"
269+ fun fanLabel (p : GameModeProfile ): String {
270+ return if (p.fanEnabled) {
271+ when (p.fanLevel) {
272+ 0 , 1 -> " Quiet"
273+ 4 , 5 -> " Turbo"
274+ else -> " Balanced"
275+ }
276+ } else {
277+ " Off"
275278 }
276- } else {
277- " Off"
278279 }
279280
280- return " Fan $fanLabel • Fan LED ${if (p.fanLedEnabled) " On" else " Off" } • Logo ${if (p.logoLedEnabled) " On" else " Off" } • Shoulder ${if (p.shoulderLedEnabled) " On" else " Off" } "
281+ fun ledLabel (p : GameModeProfile ): String {
282+ return " Fan LED ${if (p.fanLedEnabled) " On" else " Off" } • Logo ${if (p.logoLedEnabled) " On" else " Off" } • Shoulder ${if (p.shoulderLedEnabled) " On" else " Off" } "
283+ }
284+
285+ val charging = getSavedChargingModeProfile()
286+ val full = getSavedChargingFullModeProfile()
287+
288+ return " Charging: Fan ${fanLabel(charging)} • ${ledLabel(charging)} \n Full: Fan ${fanLabel(full)} • ${ledLabel(full)} "
281289 }
282290
283291 private fun isCallModeEnabledSaved (): Boolean {
You can’t perform that action at this time.
0 commit comments