Mark
03/05/2024, 1:17 PMBobby Hargett
03/05/2024, 10:02 PMBobby Hargett
03/05/2024, 10:03 PMynsok
03/06/2024, 4:30 PMNick Kleban
03/11/2024, 4:03 PMgroovyScript("Class.forName(_1).constructors", qualifiedClassName())
groovyScript("Class.forName(_1).constructors", kotlinClassName())
Colton Idle
03/19/2024, 1:29 PMsammy nduba
03/22/2024, 8:39 AMYingding Wang
03/22/2024, 8:46 PMadb connect [phone_ip]:[port]
also doesn’t work.Colton Idle
03/23/2024, 1:44 AMFred Bowker
03/24/2024, 3:52 PMbod
03/25/2024, 10:05 AManlex N
03/25/2024, 4:37 PMsammy nduba
03/26/2024, 7:59 AMclass AuthViewModel @Inject constructor(private val repository: UserRepository) : ViewModel() {
var oFirstName = ObservableField<String> ()
var oLastName = ObservableField<String> ()
var oUid = ObservableField<String> ()
private val disposables = CompositeDisposable()
var authListener: AuthListener? = null
fun registerUser() {
try {
if (oFirstName.get().isNullOrEmpty() || oLastName.get().isNullOrEmpty()) {
authListener?.onFailure("Please enter both first name and last name")
Log.d("ViewModel", "Registration started")
return
}
val user = User( firstName = oFirstName.get(), lastName = oLastName.get(),
id = oUid.get()?.toIntOrNull() ?: 0
)
disposables.add(
repository.register(user)
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{
Log.d("ViewModel", "User Registered")
authListener?.onSuccess()
},
{
Log.d("ViewModel", "Registration failed")
authListener?.onFailure("")?.let { error(it) }
}
)
)
}catch (e: Exception) {
Log.e("ViewModel", "Unable to complete registration")
}
}
override fun onCleared() {
super.onCleared()
disposables.clear()
}
}
anlex N
03/26/2024, 1:25 PMPablo
03/26/2024, 2:16 PMColton Idle
03/26/2024, 5:37 PMArsildo Murati
03/26/2024, 5:52 PMGarret Yoder
03/27/2024, 3:16 PManlex N
03/28/2024, 6:22 AManlex N
03/30/2024, 6:58 AM<http://android.googlesource.com|android.googlesource.com>\platform\tools\base\profiler
directory, but those source code is not intact.anlex N
03/31/2024, 5:53 AMTravis Griggs
04/03/2024, 5:52 PMMaterialTheme.typography.bodyMedium.copy(color = (backgroundColor.luminance() > 0.5).opt(Color._TextDark, Color.White))
I'd like to be able to select the .copy(...)
half and "extract method" so I ended up with a new function:
fun TextStyle.coloredFor(backgroundColor:Color) = this.copy(color = (backgroundColor.luminance() > 0.5).opt(Color._TextDark, Color.White))
and the original rewritten as:
MaterialTheme.typography.bodyMedium.coloredFor(backgroundColor)
I have tried selecting different parts and tried different refactoring menu options, but none some to have the ability to infer the receiver as the target of the extracted behavior.Kev Thompson
04/04/2024, 11:00 AMZongle Wang
04/07/2024, 8:07 AMAltynbek Nurtaza
04/09/2024, 8:05 PMursus
04/14/2024, 9:11 PMfull line code completion
ever supported on android studio, since its free?Robert Wijas
04/17/2024, 9:53 AMZoltan Demant
04/24/2024, 1:21 PMdesign.component.*
in my case)? It even suggests removing it, but seems odd that I need to do that for every composable when I know better ways to spend my time 🤷🏽♂️Rafs
04/26/2024, 6:51 AMsmithc42
04/26/2024, 8:00 AMMyFragmentArgs.kt
(which has been generated by the androidx.navigation.safeargs
plugin) it'll bring me to the navigation.xml
file rather than the actual Kotlin class that was generated. Pretty sure there's a setting for this but I can't find it within Android Studio 🤔