Skip to content

Commit

Permalink
fix: Fatal Exception: Unable to get provider com.ptsiogas4.securebox.…
Browse files Browse the repository at this point in the history
…SecureBoxContentProvider: java.lang.InstantiationException: java.lang.Class<com.ptsiogas4.securebox.SecureBoxContentProvider> has no zero argument constructor
ptsiogas4 committed Sep 12, 2023
1 parent 2a167db commit 933c689
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -5,16 +5,19 @@ import android.content.ContentValues
import android.database.Cursor
import android.net.Uri

class SecureBoxContentProvider : ContentProvider() {
class SecureBoxContentProvider : ContentProvider {

constructor() : super()

override fun onCreate(): Boolean {
if (this.context != null) {
SecureBoxHelper.instance.init(this.context)
if (context != null) {
SecureBoxHelper.instance.init(context)
}
return true
}

override fun insert(uri: Uri, values: ContentValues?): Uri {
//do nothing
// do nothing
return uri
}

0 comments on commit 933c689

Please sign in to comment.