mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-02 20:53:09 +00:00
disable set status button until status is received
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
df5ac64712
commit
7cc8751a1f
@ -157,10 +157,11 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
||||
binding.setStatus.setOnClickListener(v -> {
|
||||
dismiss();
|
||||
|
||||
// TODO: better solution
|
||||
if(status != null) {
|
||||
SetStatusDialogFragment setStatusDialog = SetStatusDialogFragment.newInstance(user, status);
|
||||
setStatusDialog.show(getActivity().getSupportFragmentManager(), "fragment_set_status");
|
||||
} else {
|
||||
Log.w(TAG, "status was null");
|
||||
}
|
||||
});
|
||||
|
||||
@ -212,6 +213,7 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
||||
@Override
|
||||
public void onNext(@NonNull StatusOverall statusOverall) {
|
||||
status = statusOverall.ocs.data;
|
||||
binding.setStatus.setEnabled(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -62,6 +62,7 @@
|
||||
android:textAlignment="textStart"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/fontAppbar"
|
||||
android:enabled="false"
|
||||
app:icon="@drawable/ic_edit"
|
||||
app:iconGravity="start"
|
||||
app:iconPadding="22dp"
|
||||
|
Loading…
Reference in New Issue
Block a user