Skip to content

Commit

Permalink
Fixed export .mct dump & theme issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikarus23 committed Dec 29, 2023
1 parent addf57c commit 1fa0957
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.GregorianCalendar;
import java.util.Iterator;
import java.util.Locale;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
Expand Down Expand Up @@ -649,11 +648,14 @@ private String[] convertDump(String[] source, FileType srcType,
break;
case MCT:
ArrayList<String> export = new ArrayList<>();
Iterator<String> iter = blocks.keys();
int lastKnownSector = -1;
while (iter.hasNext()) {
String blockKey = iter.next();
int blockNr = Integer.parseInt(blockKey);
// Go through all possible blocks in a sorted order.
for (int blockNr = 0; blockNr < 256; blockNr++) {
String blockKey = Integer.toString(blockNr);
if (!blocks.has(blockKey)) {
// Block does not exists. Skip.
continue;
}
int sector = MCReader.blockToSector(blockNr);
if (lastKnownSector != sector) {
lastKnownSector = sector;
Expand Down
24 changes: 0 additions & 24 deletions Mifare Classic Tool/app/src/main/res/values-v21/colors.xml

This file was deleted.

24 changes: 0 additions & 24 deletions Mifare Classic Tool/app/src/main/res/values-v21/styles.xml

This file was deleted.

4 changes: 2 additions & 2 deletions Mifare Classic Tool/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@


<resources>
<style name="AppTheme" parent="android:Theme.Holo" />
</resources>
<style name="AppTheme" parent="Theme.AppCompat" />
</resources>

0 comments on commit 1fa0957

Please sign in to comment.