Merge "Remove unused state in DocumentsUI." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
64f2ffaa7e
@@ -123,9 +123,6 @@ public class State implements android.os.Parcelable {
|
|||||||
/** Instance state for every shown directory */
|
/** Instance state for every shown directory */
|
||||||
public HashMap<String, SparseArray<Parcelable>> dirState = new HashMap<>();
|
public HashMap<String, SparseArray<Parcelable>> dirState = new HashMap<>();
|
||||||
|
|
||||||
/** UI selection */
|
|
||||||
public Selection selectedDocuments = new Selection();
|
|
||||||
|
|
||||||
/** Currently copying file */
|
/** Currently copying file */
|
||||||
public List<DocumentInfo> selectedDocumentsForCopy = new ArrayList<>();
|
public List<DocumentInfo> selectedDocumentsForCopy = new ArrayList<>();
|
||||||
|
|
||||||
@@ -202,7 +199,6 @@ public class State implements android.os.Parcelable {
|
|||||||
out.writeInt(external ? 1 : 0);
|
out.writeInt(external ? 1 : 0);
|
||||||
DurableUtils.writeToParcel(out, stack);
|
DurableUtils.writeToParcel(out, stack);
|
||||||
out.writeMap(dirState);
|
out.writeMap(dirState);
|
||||||
out.writeParcelable(selectedDocuments, 0);
|
|
||||||
out.writeList(selectedDocumentsForCopy);
|
out.writeList(selectedDocumentsForCopy);
|
||||||
out.writeList(excludedAuthorities);
|
out.writeList(excludedAuthorities);
|
||||||
out.writeInt(openableOnly ? 1 : 0);
|
out.writeInt(openableOnly ? 1 : 0);
|
||||||
@@ -233,7 +229,6 @@ public class State implements android.os.Parcelable {
|
|||||||
state.external = in.readInt() != 0;
|
state.external = in.readInt() != 0;
|
||||||
DurableUtils.readFromParcel(in, state.stack);
|
DurableUtils.readFromParcel(in, state.stack);
|
||||||
in.readMap(state.dirState, loader);
|
in.readMap(state.dirState, loader);
|
||||||
state.selectedDocuments = in.readParcelable(loader);
|
|
||||||
in.readList(state.selectedDocumentsForCopy, loader);
|
in.readList(state.selectedDocumentsForCopy, loader);
|
||||||
in.readList(state.excludedAuthorities, loader);
|
in.readList(state.excludedAuthorities, loader);
|
||||||
state.openableOnly = in.readInt() != 0;
|
state.openableOnly = in.readInt() != 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user