removed size-sorting of base-dir proposals

This commit is contained in:
Arndt Brenschede 2019-07-20 13:26:31 +02:00
parent e1f8fce85a
commit c1f68e99d0

View file

@ -499,11 +499,8 @@ public class BRouterActivity extends Activity implements OnInitListener
size = (long) stat.getAvailableBlocks() * stat.getBlockSize(); size = (long) stat.getAvailableBlocks() * stat.getBlockSize();
} }
catch (Exception e) { /* ignore */ } catch (Exception e) { /* ignore */ }
int idx = 0; availableBasedirs.add( d );
while (idx < availableBasedirs.size() && dirFreeSizes.get( idx ).longValue() > size) dirFreeSizes.add( Long.valueOf( size ) );
idx++;
availableBasedirs.add( idx, d );
dirFreeSizes.add( idx, Long.valueOf( size ) );
} }
basedirOptions = new String[items.size() + 1]; basedirOptions = new String[items.size() + 1];