setTextColor doesn’t work with LiveData and DataBinding

I’m trying to bind using LiveData the textColor and a view. In order to modify the view’s color with the LiveData. I’ve the following layout: <layout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto”> <data> <variable name=”fragment” type=”com.package.RegisterFragment” /> <variable name=”viewModel” type=”com.package.RegistrationViewModel” /> </data> [……] <androidx.appcompat.widget.AppCompatEditText android:id=”@+id/password_field” android:background=”@drawable/rounded_edit_text” android:layout_width=”match_parent” android:layout_height=”45dp” android:paddingTop=”10dp” android:paddingBottom=”10dp” android:text=”@={viewModel.password}” android:textColor=”@{context.getResources().getColor(viewModel.passwordColor)}” android:paddingRight=”10dp” android:paddingLeft=”20dp” android:inputType=”textPassword”/> And the following code…

Details

How can I programatically get the WAN IPs from a TP-Link multi-WAN router?

Our office uses a TP-Link TL-ER6020 multi-WAN router, which supports up to 4 WAN connections, of which I’m using 2. For access from outside, I’d like to register both IPs with AWS Route 53 DNS. Using another system from within the office (like a Pi) doesn’t work reliably, since methods like dig +short myip.opendns.com @resolver1.opendns.com…

Details