Trying to understand #83.

This commit is contained in:
Amine Bou 2018-02-07 21:30:39 +01:00
parent 6a50b37364
commit 403ecc4521
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,10 @@
- Ability to change the article viewer content font size (see #153) - Ability to change the article viewer content font size (see #153)
- Versions updates.
- Added padding to the recyclerview.
**1.5.5.x (didn't last long) AND 1.5.6.x** **1.5.5.x (didn't last long) AND 1.5.6.x**
- Toolbar in reader activity. - Toolbar in reader activity.

View File

@ -14,6 +14,7 @@ import android.view.MenuItem
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.webkit.WebSettings import android.webkit.WebSettings
import android.widget.Toast
import apps.amine.bou.readerforselfoss.BuildConfig import apps.amine.bou.readerforselfoss.BuildConfig
import apps.amine.bou.readerforselfoss.R import apps.amine.bou.readerforselfoss.R
import apps.amine.bou.readerforselfoss.api.mercury.MercuryApi import apps.amine.bou.readerforselfoss.api.mercury.MercuryApi
@ -318,6 +319,7 @@ class ArticleFragment : Fragment() {
val itemUrl = URL(url) val itemUrl = URL(url)
baseUrl = itemUrl.protocol + "://" + itemUrl.host baseUrl = itemUrl.protocol + "://" + itemUrl.host
} catch (e: MalformedURLException) { } catch (e: MalformedURLException) {
Toast.makeText(activity!!.baseContext, "You are encountering a bug that I can't solve. Can you please contact me to solve the issue, please ?", Toast.LENGTH_LONG).show()
Crashlytics.setUserIdentifier(prefs.getString("unique_id", "")) Crashlytics.setUserIdentifier(prefs.getString("unique_id", ""))
Crashlytics.log(100, "BASE_URL_MALFORMED", e.message) Crashlytics.log(100, "BASE_URL_MALFORMED", e.message)
Crashlytics.logException(e) Crashlytics.logException(e)