|
@ -1,9 +1,14 @@ |
|
|
package gr.thmmy.mthmmy.utils; |
|
|
package gr.thmmy.mthmmy.utils; |
|
|
|
|
|
|
|
|
|
|
|
import android.content.SharedPreferences; |
|
|
|
|
|
import android.preference.PreferenceManager; |
|
|
|
|
|
|
|
|
|
|
|
import org.jsoup.Jsoup; |
|
|
import org.jsoup.nodes.Document; |
|
|
import org.jsoup.nodes.Document; |
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
|
|
|
|
import gr.thmmy.mthmmy.R; |
|
|
import gr.thmmy.mthmmy.base.BaseApplication; |
|
|
import gr.thmmy.mthmmy.base.BaseApplication; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseException; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseException; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; |
|
@ -54,6 +59,10 @@ public abstract class NetworkTask<T> extends ExternalAsyncTask<String, Parcel<T> |
|
|
return new Parcel<>(resultCode, data); |
|
|
return new Parcel<>(resultCode, data); |
|
|
} catch (ParseException pe) { |
|
|
} catch (ParseException pe) { |
|
|
Timber.e(pe); |
|
|
Timber.e(pe); |
|
|
|
|
|
SharedPreferences settingsPreferences = PreferenceManager.getDefaultSharedPreferences(BaseApplication.getInstance()); |
|
|
|
|
|
if (settingsPreferences.getBoolean(BaseApplication.getInstance() |
|
|
|
|
|
.getString(R.string.pref_privacy_crashlytics_enable_key), false)) |
|
|
|
|
|
CrashReporter.reportForumInfo(Jsoup.parse(responseBodyString)); |
|
|
return new Parcel<>(NetworkResultCodes.PARSE_ERROR, null); |
|
|
return new Parcel<>(NetworkResultCodes.PARSE_ERROR, null); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
Timber.e(e); |
|
|
Timber.e(e); |
|
|