Use the same name for the 2 db log methods
This commit is contained in:
parent
3c7f61e45c
commit
d4963dfb31
|
@ -242,5 +242,5 @@ interface Session :
|
|||
/**
|
||||
* Maintenance API, allows to print outs info on DB size to logcat
|
||||
*/
|
||||
fun dbgTraceDbInfo()
|
||||
fun logDbUsageInfo()
|
||||
}
|
||||
|
|
|
@ -287,7 +287,7 @@ internal class DefaultSession @Inject constructor(
|
|||
return "$myUserId - ${sessionParams.deviceId}"
|
||||
}
|
||||
|
||||
override fun dbgTraceDbInfo() {
|
||||
override fun logDbUsageInfo() {
|
||||
Realm.getInstance(realmConfiguration).use { realm ->
|
||||
val info = StringBuilder()
|
||||
|
||||
|
|
|
@ -446,8 +446,10 @@ class BugReporter @Inject constructor(
|
|||
*/
|
||||
fun openBugReportScreen(activity: FragmentActivity, forSuggestion: Boolean = false) {
|
||||
screenshot = takeScreenshot(activity)
|
||||
activeSessionHolder.getSafeActiveSession()?.dbgTraceDbInfo()
|
||||
activeSessionHolder.getSafeActiveSession()?.cryptoService()?.logDbUsageInfo()
|
||||
activeSessionHolder.getSafeActiveSession()?.let {
|
||||
it.logDbUsageInfo()
|
||||
it.cryptoService().logDbUsageInfo()
|
||||
}
|
||||
|
||||
val intent = Intent(activity, BugReportActivity::class.java)
|
||||
intent.putExtra("FOR_SUGGESTION", forSuggestion)
|
||||
|
|
Loading…
Reference in New Issue