Defered finish

This commit is contained in:
M66B
2018-08-22 05:18:31 +00:00
parent a1aee23488
commit e578051c2c
6 changed files with 18 additions and 15 deletions

View File

@@ -33,7 +33,6 @@ import java.util.List;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.Group;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@@ -109,8 +108,7 @@ public class FragmentFolders extends FragmentEx {
@Override
public void onChanged(@Nullable List<TupleFolderEx> folders) {
if (folders == null) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getFragmentManager().popBackStack();
finish();
return;
}