mirror of
https://github.com/etesync/android
synced 2024-11-22 16:08:13 +00:00
Debug activity: fix crash when getting sync errors.
Sync phase was passed as an Int but expected as a String.
This commit is contained in:
parent
a702a4e794
commit
6ac83beb47
@ -105,7 +105,7 @@ class DebugInfoActivity : BaseActivity(), LoaderManager.LoaderCallbacks<String>
|
|||||||
logs = extras.getString(KEY_LOGS)
|
logs = extras.getString(KEY_LOGS)
|
||||||
account = extras.getParcelable(KEY_ACCOUNT)
|
account = extras.getParcelable(KEY_ACCOUNT)
|
||||||
authority = extras.getString(KEY_AUTHORITY)
|
authority = extras.getString(KEY_AUTHORITY)
|
||||||
phase = extras.getString(KEY_PHASE, null)
|
phase = if (extras.containsKey(KEY_PHASE)) context.getString(extras.getInt(KEY_PHASE)) else null
|
||||||
}
|
}
|
||||||
|
|
||||||
val report = StringBuilder("--- BEGIN DEBUG INFO ---\n")
|
val report = StringBuilder("--- BEGIN DEBUG INFO ---\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user