mirror of https://github.com/M66B/FairEmail.git
Small behavior improvement
This commit is contained in:
parent
f8136955b5
commit
8ed6d2d2ce
|
@ -34,6 +34,7 @@ import android.widget.TextView;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
|
import androidx.constraintlayout.widget.Group;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
@ -57,6 +58,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
|
||||||
final ImageButton ibNext = dview.findViewById(R.id.ibNext);
|
final ImageButton ibNext = dview.findViewById(R.id.ibNext);
|
||||||
final RecyclerView rvFolder = dview.findViewById(R.id.rvFolder);
|
final RecyclerView rvFolder = dview.findViewById(R.id.rvFolder);
|
||||||
final ContentLoadingProgressBar pbWait = dview.findViewById(R.id.pbWait);
|
final ContentLoadingProgressBar pbWait = dview.findViewById(R.id.pbWait);
|
||||||
|
final Group grpReady = dview.findViewById(R.id.grpReady);
|
||||||
|
|
||||||
rvFolder.setHasFixedSize(false);
|
rvFolder.setHasFixedSize(false);
|
||||||
final LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
final LinearLayoutManager llm = new LinearLayoutManager(getContext());
|
||||||
|
@ -115,7 +117,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
|
||||||
@Override
|
@Override
|
||||||
protected void onPreExecute(Bundle args) {
|
protected void onPreExecute(Bundle args) {
|
||||||
tvNoFolder.setVisibility(View.GONE);
|
tvNoFolder.setVisibility(View.GONE);
|
||||||
rvFolder.setVisibility(View.GONE);
|
grpReady.setVisibility(View.GONE);
|
||||||
pbWait.setVisibility(View.VISIBLE);
|
pbWait.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +141,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
|
||||||
else {
|
else {
|
||||||
adapter.setDisabled(Helper.fromLongArray(disabled));
|
adapter.setDisabled(Helper.fromLongArray(disabled));
|
||||||
adapter.set(folders);
|
adapter.set(folders);
|
||||||
rvFolder.setVisibility(View.VISIBLE);
|
grpReady.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,4 +63,10 @@
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.Group
|
||||||
|
android:id="@+id/grpReady"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:constraint_referenced_ids="etSearch,ibNext,rvFolder" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue