Small behavior improvement

pull/172/head
M66B 5 years ago
parent f8136955b5
commit 8ed6d2d2ce

@ -34,6 +34,7 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.constraintlayout.widget.Group;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@ -57,6 +58,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
final ImageButton ibNext = dview.findViewById(R.id.ibNext);
final RecyclerView rvFolder = dview.findViewById(R.id.rvFolder);
final ContentLoadingProgressBar pbWait = dview.findViewById(R.id.pbWait);
final Group grpReady = dview.findViewById(R.id.grpReady);
rvFolder.setHasFixedSize(false);
final LinearLayoutManager llm = new LinearLayoutManager(getContext());
@ -115,7 +117,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
@Override
protected void onPreExecute(Bundle args) {
tvNoFolder.setVisibility(View.GONE);
rvFolder.setVisibility(View.GONE);
grpReady.setVisibility(View.GONE);
pbWait.setVisibility(View.VISIBLE);
}
@ -139,7 +141,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
else {
adapter.setDisabled(Helper.fromLongArray(disabled));
adapter.set(folders);
rvFolder.setVisibility(View.VISIBLE);
grpReady.setVisibility(View.VISIBLE);
}
}

@ -63,4 +63,10 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="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>
Loading…
Cancel
Save