Commented unwanted method.
This commit is contained in:
@@ -3,18 +3,17 @@ package com.example.hpos.util
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Environment
|
import android.os.Environment
|
||||||
import com.example.hpos.R
|
import com.example.hpos.R
|
||||||
import com.example.hpos.data.model.DeviceType
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class MyUtils {
|
class MyUtils {
|
||||||
|
|
||||||
fun getDeviceTypeFromString(deviceName: String) : DeviceType {
|
// fun getDeviceTypeFromString(deviceName: String) : DeviceType {
|
||||||
return if (deviceName == "TestRight"){
|
// return if (deviceName == "TestRight"){
|
||||||
DeviceType.TestRight
|
// DeviceType.TestRight
|
||||||
} else {
|
// } else {
|
||||||
DeviceType.Denovix
|
// DeviceType.Denovix
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
fun createAppFolder(context: Context) : String? {
|
fun createAppFolder(context: Context) : String? {
|
||||||
val folderPath = Environment.getExternalStorageDirectory().absolutePath + "/" + context.resources.getString(R.string.app_name) + "/"
|
val folderPath = Environment.getExternalStorageDirectory().absolutePath + "/" + context.resources.getString(R.string.app_name) + "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user