count only updatable tiles
This commit is contained in:
parent
2f0b5f18e1
commit
22c92635b2
2 changed files with 5 additions and 1 deletions
|
@ -162,8 +162,10 @@ public class BInstallerActivity extends AppCompatActivity {
|
|||
|
||||
private void updateDownloadButton() {
|
||||
final ArrayList<Integer> selectedTilesDownload = mBInstallerView.getSelectedTiles(MASK_SELECTED_RD5);
|
||||
final ArrayList<Integer> selectedTilesLastUpdate = mBInstallerView.getSelectedTiles(MASK_CURRENT_RD5);
|
||||
final ArrayList<Integer> selectedTilesUpdate = mBInstallerView.getSelectedTiles(MASK_INSTALLED_RD5);
|
||||
final ArrayList<Integer> selectedTilesDelete = mBInstallerView.getSelectedTiles(MASK_DELETED_RD5);
|
||||
selectedTilesUpdate.removeAll(selectedTilesLastUpdate);
|
||||
mSummaryInfo.setText("");
|
||||
|
||||
if (selectedTilesDelete.size() > 0) {
|
||||
|
|
|
@ -9,7 +9,6 @@ import android.graphics.Bitmap;
|
|||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
@ -258,6 +257,8 @@ public class BRouterView extends View {
|
|||
ConfigMigration.tryMigrateStorageConfig(
|
||||
new File(basedir + "/brouter/segments3/storageconfig.txt"),
|
||||
new File(basedir + "/brouter/segments4/storageconfig.txt"));
|
||||
} else {
|
||||
ServerConfig.checkForUpdate(getContext(), segmentDir, "segments4.zip");
|
||||
}
|
||||
profileDir = new File(basedir, "brouter/profiles2");
|
||||
assertDirectoryExists("profile directory", profileDir, "profiles2.zip", version);
|
||||
|
@ -582,6 +583,7 @@ public class BRouterView extends View {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
if (!path.exists() || !path.isDirectory())
|
||||
throw new IllegalArgumentException(message + ": " + path + " cannot be created");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue