ubu
09/10/2018, 10:45 AMclass App : Application, SomeBehavior by someObject
@no, this line is invalid, as I have no access to someObject in class declaration.lexardi
09/10/2018, 11:05 AMAamer Paul
09/11/2018, 11:32 AMNawin
09/12/2018, 4:38 AMmingkangpan
09/12/2018, 2:10 PModay
09/12/2018, 2:14 PMrkeazor
09/12/2018, 2:31 PMMr Unlimited
09/12/2018, 4:27 PMstefan
09/12/2018, 7:12 PMursus
09/12/2018, 9:34 PMCamilleBC
09/13/2018, 3:25 PMonCreateView
function, or somewhere else?supotuco
09/13/2018, 5:46 PMUdit003
09/14/2018, 6:40 AMstartActivity(intent)
and finish()
, but my viewModel onCleared()
method is not called . What is the reason. I am using koin for di. Appcompat library 'com.android.support😒upport-v4:27.1.1' .LeoColman
09/15/2018, 1:41 AMNizzle94
09/15/2018, 11:00 AMSudhir Singh Khanger
09/16/2018, 4:00 AMSudhir Singh Khanger
09/16/2018, 4:51 AMAbbas
09/17/2018, 12:38 AMSlackbot
09/17/2018, 6:25 AMAyokunle Paul
09/17/2018, 12:34 PMPaul Woitaschek
09/17/2018, 2:43 PMDaniele Segato
09/18/2018, 5:07 PMerror: MyDao_Impl is not abstract and does not override abstract method myInterfaceMethod(String) in MyDao
If I write the same Dao in Java it compile with no issue:
@Dao
public interface TestDao {
@Ignore
default String myInterfaceMethod(String test) {
return test;
}
}
anyone know if there's a way to make it work? maybe some Annotation?temp_man
09/19/2018, 8:47 PMPaul Woitaschek
09/19/2018, 8:59 PMmemphis
09/20/2018, 2:20 PM@IntDef
annotation as below
companion object {
@Retention(AnnotationRetention.SOURCE)
@IntDef(
TYPE_HEADER.toLong(),
TYPE_FOOTER.toLong()
)
annotation class AdapterItemType
const val TYPE_HEADER = 0
const val TYPE_FOOTER = 2
}
I noticed that values inside @IntDef
must be of type Long
and not Int
.. But in compilation, I get this error :
error: incompatible types: possible lossy conversion from long to int
Any idea? 🙂Paul Woitaschek
09/20/2018, 2:33 PMleosan
09/21/2018, 9:15 AMinline fun <reified T : ViewDataBinding> FragmentActivity.contentView(@LayoutRes layoutRes: Int) = lazy(LazyThreadSafetyMode.SYNCHRONIZED) {
DataBindingUtil.setContentView<T>(this, layoutRes)
}
HaSH
09/21/2018, 7:01 PMIcaro Temponi
09/22/2018, 10:28 PMPaul Woitaschek
09/23/2018, 1:26 PMPaul Woitaschek
09/23/2018, 1:26 PMrkeazor
09/23/2018, 1:40 PMPaul Woitaschek
09/23/2018, 2:49 PMrkeazor
09/23/2018, 3:13 PMhallvard
09/23/2018, 8:21 PM