mirror of https://github.com/M66B/FairEmail.git
parent
98593432c4
commit
aded278004
|
@ -32,7 +32,6 @@ import androidx.appcompat.app.AlertDialog;
|
|||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static android.app.Activity.RESULT_OK;
|
||||
|
@ -94,12 +93,7 @@ public class FragmentDialogFolder extends DialogFragmentEx {
|
|||
|
||||
@Override
|
||||
protected void onExecuted(final Bundle args, List<TupleFolderEx> folders) {
|
||||
if (folders == null)
|
||||
folders = new ArrayList<>();
|
||||
|
||||
Log.i("Selecting folders=" + folders.size() + " disabled=" + disabled.length);
|
||||
|
||||
if (folders.size() == 0)
|
||||
if (folders == null || folders.size() == 0)
|
||||
tvNoFolder.setVisibility(View.VISIBLE);
|
||||
else {
|
||||
rvFolder.setVisibility(View.VISIBLE);
|
||||
|
@ -110,7 +104,6 @@ public class FragmentDialogFolder extends DialogFragmentEx {
|
|||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(getFragmentManager(), ex);
|
||||
}
|
||||
}.execute(getContext(), getActivity(), args, "folder:select");
|
||||
|
|
Loading…
Reference in New Issue