Rebuild icons and fix missing disk borders

This commit is contained in:
Ender's Games 2018-09-26 22:21:52 -04:00
parent 6e1b12eec2
commit 8c25d4e5d7
12 changed files with 29 additions and 19 deletions

Binary file not shown.

View File

@ -259,24 +259,33 @@ public class FileBrowser extends Fragment {
@Override
protected void onPostExecute(List<File> items) {
if (items != null && !items.isEmpty()) {
LinearLayout list = (LinearLayout) browser.get().getActivity().findViewById(R.id.game_list);
if (list.getChildCount() > 0) {
list.removeAllViews();
}
LinearLayout list = (LinearLayout) browser.get().getActivity().findViewById(R.id.game_list);
if (list.getChildCount() > 0) {
list.removeAllViews();
}
String heading = browser.get().getActivity().getString(R.string.games_listing);
browser.get().createListHeader(heading, list, array == R.array.images);
String heading = browser.get().getActivity().getString(R.string.games_listing);
browser.get().createListHeader(heading, list, array == R.array.images);
if (items != null && !items.isEmpty()) {
for (int i = 0; i < items.size(); i++) {
browser.get().createListItem(list, items.get(i), i, array == R.array.images);
}
list.invalidate();
} else if (browser.get().searchQuery == null) {
} else if (browser.get().searchQuery != null) {
final View childview = browser.get().getActivity().getLayoutInflater().inflate(
R.layout.browser_fragment_item, null, false);
((TextView) childview.findViewById(R.id.item_name)).setText(R.string.no_games);
((ImageView) childview.findViewById(R.id.item_icon))
.setImageResource(R.mipmap.disk_missing);
list.addView(childview);
} else {
browser.get().browseStorage(array == R.array.images);
}
list.invalidate();
}
}
private void browseStorage(boolean images) {
if (images) {
(new navigate(this)).executeOnExecutor(
@ -285,15 +294,15 @@ public class FileBrowser extends Fragment {
if (game_directory.equals(sdcard.getAbsolutePath())) {
HashSet<String> extStorage = FileBrowser.getExternalMounts();
if (extStorage != null && !extStorage.isEmpty()) {
for (String sd : extStorage) {
String sdCardPath = sd.replace("mnt/media_rw", "storage");
if (!sdCardPath.equals(sdcard.getAbsolutePath())) {
if (new File(sdCardPath).canRead()) {
(new navigate(this)).execute(new File(sdCardPath));
return;
}
}
}
for (String sd : extStorage) {
String sdCardPath = sd.replace("mnt/media_rw", "storage");
if (!sdCardPath.equals(sdcard.getAbsolutePath())) {
if (new File(sdCardPath).canRead()) {
(new navigate(this)).execute(new File(sdCardPath));
return;
}
}
}
}
}
(new navigate(this)).executeOnExecutor(

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -75,6 +75,7 @@
<string name="games_listing">Game List</string>
<string name="search_hint">Game (ie. Crazy Taxi)</string>
<string name="clear_search">Clear Search Results</string>
<string name="no_games">No games found for current search</string>
<string name="game_details">Game Info - %1$s</string>
<string name="info_unavailable">Game Info Unavailable</string>