Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Enhancement: MarkedItemList.java #85

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,33 +157,33 @@ eg. /sdcard:/mnt:

#### Theme.Black

![Screenshot 1](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/theme_black.png)
![Screenshot 1](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/theme_black.png)

#### Theme.Holo

![Screenshot 2](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/theme_holo.png)
![Screenshot 2](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/theme_holo.png)

#### Theme.Holo.Light

![Screenshot 3](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/theme_holo_light.png)
![Screenshot 3](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/theme_holo_light.png)

#### Theme.Material

![Screenshot 4](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/theme_material.png)
![Screenshot 4](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/theme_material.png)

#### Theme.DeviceDefault

![Screenshot 5](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/theme_device_default.png)
![Screenshot 5](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/theme_device_default.png)

### Performance

#### GPU Overdraw

![Performance 1](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/performance_overdraw.png)
![Performance 1](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/performance_overdraw.png)

#### GPU Rendering

![Performance 2](https://raw.githubusercontent.com/Angads25/android-filepicker/master/screenshots/profile_gpu_rendering.png)
![Performance 2](https://raw.githubusercontent.com/Angads25/android-filepicker/release/screenshots/profile_gpu_rendering.png)

### License
Copyright (C) 2016 Angad Singh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.github.angads25.filepicker.model;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Set;

/**<p>
Expand All @@ -29,7 +29,7 @@
* Value: FileListItem Object.
*/
public class MarkedItemList {
private static HashMap<String,FileListItem> ourInstance = new HashMap<>();
private static LinkedHashMap<String,FileListItem> ourInstance = new LinkedHashMap<>();

public static void addSelectedItem(FileListItem item) {
ourInstance.put(item.getLocation(),item);
Expand All @@ -44,11 +44,11 @@ public static boolean hasItem(String key) {
}

public static void clearSelectionList() {
ourInstance = new HashMap<>();
ourInstance = new LinkedHashMap<>();
}

public static void addSingleFile(FileListItem item) {
ourInstance = new HashMap<>();
ourInstance = new LinkedHashMap<>();
ourInstance.put(item.getLocation(),item);
}

Expand Down