chanzmao
06/29/2017, 3:38 PMtrevjones
06/29/2017, 3:48 PMitemView.picker
it will not cache the lookup.chanzmao
06/29/2017, 3:58 PMnounours
06/29/2017, 5:22 PMedu_graciano
06/29/2017, 5:24 PMibfrog
06/29/2017, 5:37 PMibfrog
06/29/2017, 5:38 PMtrevjones
06/29/2017, 5:41 PMedu_graciano
06/29/2017, 5:49 PMmacmedan
06/29/2017, 7:20 PMenums
. I have defined one that looks like this enum class ChartType(val value: String?) {
Text("Text"),
MAP("Map"),
COLUMN("Column Style 1"),
and want to use this enum in a function like this: fun getType():ChartType {
var type = ChartType(value = currentData?.visualizationName)
}
But obviously have something wrong (Enums cannot be Instantiated). So my question is how do I do this properly? Do I have to make a function
with a giant switch statement
that takes a String
and returns the ChartType enum
or is there an better way.trevjones
06/29/2017, 7:23 PMtrevjones
06/29/2017, 7:37 PMhqbao
06/30/2017, 1:56 AMgildor
06/30/2017, 2:08 AMhqbao
06/30/2017, 2:11 AMblakelee
06/30/2017, 6:48 AMerror: Not sure how to convert a Cursor to this method's return type
That is all the information I get even with debug and stacktrace.
Edit:I think it's a problem with AS canary 4budioktaviyan
06/30/2017, 8:29 AM1.1.3
makes disposable inferred type become nullable
?budioktaviyan
06/30/2017, 8:30 AMm1nd
06/30/2017, 9:37 AMError:Uncaught translation error: com.android.dx.cf.code.SimException: at stack depth 2, expected type kotlin.ranges.IntRange but found int
Error:1 error; aborting
Error:Execution failed for task ':app:transformClassesWithDexForStudoDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process
Has anyone experienced / solved this issue?stegod10
06/30/2017, 9:40 AMihor_kucherenko
06/30/2017, 9:47 AMiex
06/30/2017, 11:36 AMiex
06/30/2017, 11:37 AMval
)iex
06/30/2017, 11:37 AMmenegatti
06/30/2017, 11:37 AMfun constructor(context: Context, val yourParameter : Int) : super(context)
iex
06/30/2017, 11:38 AMiex
06/30/2017, 11:38 AMmenegatti
06/30/2017, 11:38 AMvar
theniex
06/30/2017, 11:38 AMmenegatti
06/30/2017, 11:38 AM