-
Notifications
You must be signed in to change notification settings - Fork 737
Fix bugs that occur the most on Fabric #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
FolioDatabaseHelper.clearInstance(); | ||
} | ||
|
||
public static boolean insert(String table, ContentValues contentValues) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So much unused code, not sure why you need it
|
||
// Need to add when vector drawables support library is used. | ||
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) | ||
DbAdapter.initialize(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using static classes that are initialized somewhere in the lifecycle is not a good practice at all. But it will require a lot refactoring to fix everything.
Log.v(LOG_TAG, "-> onPageFinished -> readLocator -> " + cfi!!) | ||
mWebview!!.loadUrl(String.format(getString(R.string.callScrollToCfi), cfi)) | ||
cfi?.let { | ||
Log.v(LOG_TAG, "-> onPageFinished -> readLocator -> $cfi") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the app need to crash if there are problems with the WebView?
outState!!.putSerializable(BUNDLE_READ_LOCATOR_CONFIG_CHANGE, lastReadLocator) | ||
if (activity != null && !activity!!.isFinishing) | ||
mActivityCallback!!.storeLastReadLocator(lastReadLocator) | ||
mActivityCallback?.storeLastReadLocator(lastReadLocator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, this is null
Several small bugs