mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 19:15:58 +00:00
Optimize UI for Device info, User info and Password info
Change USB signal to Disable USB signal Hide Master volume mute in work profile
This commit is contained in:
@@ -14,6 +14,7 @@ import android.widget.Toast
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.activity.result.ActivityResultLauncher
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.annotation.StringRes
|
||||
import com.bintianqi.owndroid.dpm.addDeviceAdmin
|
||||
import com.bintianqi.owndroid.dpm.createManagedProfile
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
@@ -121,3 +122,8 @@ fun formatFileSize(bytes: Long): String {
|
||||
else -> "$bytes bytes"
|
||||
}
|
||||
}
|
||||
|
||||
@StringRes
|
||||
fun Boolean.yesOrNo(): Int {
|
||||
return if(this) R.string.yes else R.string.no
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user