A few changes:
Add actionbar to the Info screen
Add a progress bar to the Webview in Info screen
Only show the changelog for release versions
Load the changelog webpage from assets to prevent overloading server
Refactor the version utilities to a new class
The splash screen wasn't working very well, and was actually unecessarily making the interface feel slower everytime the collection needed to be opened anyway.
This removes the splash screen entirely, and instead adds a progress indicator to the action bar when the collection is loading, and shows a toast when the external storage is not mounted before closing the app.
When syncing my collection, I'm getting this error:
W/System.err(17831): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
W/System.err(17831): at com.ichi2.libanki.sync.Syncer.mergeNotes(Syncer.java:881)
W/System.err(17831): at com.ichi2.libanki.sync.Syncer.applyChunk(Syncer.java:566)
W/System.err(17831): at com.ichi2.libanki.sync.Syncer.sync(Syncer.java:182)
[...]
So sometimes the note ID is an Integer rather than a Long.
Using Long.valueOf(((Number) foo).longValue()) will work for both Longs
and Integers.
The lint check for unused resources earlier removed these files since they aren't referenced in code, but are instead dynamically loaded on cards. They are still required.
Additionally, removed some methods that are not required to be in the compat classes, including:
- Methods that are now available on all supported platforms after the recent minsdkversion bump
- Methods that are supported on all platform through the support library and don't gain any benefits from being in our compat classes
Bug copied from de doc file: Dialog which does importing of apkg doesn’t work properly (probably due to changing the target SDK?). Instead of confirmation dialog appearing when you select an apkg, you get kicked back to the previous dialog.
I don't know exactly why, but calling executePendingTransactions() just after the transaction.commit() seems to have solved the issue.
7024fed002
Additionally, remove all traces of the "media usn" value. The media syncer manages its own usn now.
Conflicts:
AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.java
AnkiDroid/src/main/java/com/ichi2/anki/dialogs/SyncErrorDialog.java
AnkiDroid/src/main/java/com/ichi2/async/Connection.java