1
0
mirror of https://github.com/etesync/android synced 2024-12-23 15:18:14 +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:
Tom Hacohen 2019-03-30 09:36:57 +00:00
parent a702a4e794
commit 6ac83beb47

View File

@ -105,7 +105,7 @@ class DebugInfoActivity : BaseActivity(), LoaderManager.LoaderCallbacks<String>
logs = extras.getString(KEY_LOGS)
account = extras.getParcelable(KEY_ACCOUNT)
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")