Commented unwanted method.

This commit is contained in:
vsuryakumar
2023-02-02 16:31:28 +05:30
parent 1c20ab279b
commit 2c74675d3d

View File

@@ -3,18 +3,17 @@ package com.example.hpos.util
import android.content.Context
import android.os.Environment
import com.example.hpos.R
import com.example.hpos.data.model.DeviceType
import java.io.File
class MyUtils {
fun getDeviceTypeFromString(deviceName: String) : DeviceType {
return if (deviceName == "TestRight"){
DeviceType.TestRight
} else {
DeviceType.Denovix
}
}
// fun getDeviceTypeFromString(deviceName: String) : DeviceType {
// return if (deviceName == "TestRight"){
// DeviceType.TestRight
// } else {
// DeviceType.Denovix
// }
// }
fun createAppFolder(context: Context) : String? {
val folderPath = Environment.getExternalStorageDirectory().absolutePath + "/" + context.resources.getString(R.string.app_name) + "/"