Skip to content

Commit

Permalink
Fixed last missing equals and fixed instruction redundancy in Databas…
Browse files Browse the repository at this point in the history
…eManager
  • Loading branch information
ilveron committed Jul 20, 2022
1 parent 7c76e56 commit 75459b0
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified MediaPlayerDb.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void receiveMyMedia(String filter){
try {
if(connection != null&&checkLibrary(filter)&&!connection.isClosed()) {
String query = "select * from MyMedia;";
if (filter != "empty") {
if (!filter.equals("empty")) {
query = "select * from MyMedia where "+filter+"=true";
}
PreparedStatement stmt = connection.prepareStatement(query);
Expand Down Expand Up @@ -644,16 +644,9 @@ public boolean setEqualizer(int []vett){
"Hz4000=?," +
"Hz8000=?," +
"Hz16000=? WHERE Key=key ;");
stmt.setInt(1,vett[0]);
stmt.setInt(2,vett[1]);
stmt.setInt(3,vett[2]);
stmt.setInt(4,vett[3]);
stmt.setInt(5,vett[4]);
stmt.setInt(6,vett[5]);
stmt.setInt(7,vett[6]);
stmt.setInt(8,vett[7]);
stmt.setInt(9,vett[8]);
stmt.setInt(10,vett[9]);
for(int i = 0; i < 10; ++i)
stmt.setInt(i+1, vett[i]);

stmt.execute();
stmt.close();
return true;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 75459b0

Please sign in to comment.