This repository has been archived by the owner on Sep 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- minor ui changes in FileExplorer - code clean up
- Loading branch information
1 parent
d4de9cf
commit d7f0ba3
Showing
14 changed files
with
404 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
app/src/main/java/us/koller/cameraroll/data/StorageRoot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package us.koller.cameraroll.data; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
|
||
public class StorageRoot extends File_POJO { | ||
|
||
private String name; | ||
|
||
public StorageRoot(String path) { | ||
super(path, false); | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
if (name == null) { | ||
return super.getName(); | ||
} | ||
return name; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(Parcel parcel, int i) { | ||
super.writeToParcel(parcel, i); | ||
parcel.writeString(name); | ||
} | ||
|
||
private StorageRoot(Parcel parcel) { | ||
super(parcel); | ||
name = parcel.readString(); | ||
} | ||
|
||
public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { | ||
public StorageRoot createFromParcel(Parcel parcel) { | ||
return new StorageRoot(parcel); | ||
} | ||
|
||
@Override | ||
public StorageRoot[] newArray(int i) { | ||
return new StorageRoot[i]; | ||
} | ||
}; | ||
} |
Oops, something went wrong.