|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|