Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.

Commit

Permalink
don't report network io exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Longi94 committed May 4, 2016
1 parent bb08af9 commit 6e9454a
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void onClick(View v) {
holder.price.setText(item.getPrice().getFormattedPrice(mContext));
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
} else {
holder.price.setText("Price Unknown");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public void onClick(View v) {
holder.price.setText(item.getPrice().getFormattedPrice(mContext));
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public void onClick(View v) {
holder.price.setText(item.getPrice().getFormattedPrice(mContext));
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ protected void onHandleIntent(Intent intent) {
} catch (IOException e) {
Log.d(LOG_TAG, "Failed to complete token refresh", e);
Crashlytics.logException(e);
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.os.AsyncTask;
import android.util.Log;

import com.crashlytics.android.Crashlytics;
import com.tlongdev.bktf.BptfApplication;
import com.tlongdev.bktf.BuildConfig;
import com.tlongdev.bktf.model.Currency;
Expand Down Expand Up @@ -97,7 +96,7 @@ protected Integer doInBackground(Void... params) {
return -1;

} catch (IOException e) {
Crashlytics.logException(e);
e.printStackTrace();
}

return -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.content.Context;
import android.os.AsyncTask;

import com.crashlytics.android.Crashlytics;
import com.tlongdev.bktf.BptfApplication;
import com.tlongdev.bktf.BuildConfig;
import com.tlongdev.bktf.R;
Expand Down Expand Up @@ -136,7 +135,7 @@ protected Integer doInBackground(Void... params) {
} catch (IOException e) {
//There was a network error
errorMessage = mContext.getString(R.string.error_network);
Crashlytics.logException(e);
e.printStackTrace();
return -1;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import android.content.SharedPreferences;
import android.os.AsyncTask;

import com.crashlytics.android.Crashlytics;
import com.tlongdev.bktf.BptfApplication;
import com.tlongdev.bktf.BuildConfig;
import com.tlongdev.bktf.R;
Expand Down Expand Up @@ -158,7 +157,7 @@ protected Integer doInBackground(Void... params) {
} catch (IOException e) {
//There was a network error
errorMessage = mContext.getString(R.string.error_network);
Crashlytics.logException(e);
e.printStackTrace();
return -1;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected Integer doInBackground(Void... params) {
}

} catch (IOException e) {
Crashlytics.logException(e);
e.printStackTrace();
}
return 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ protected Integer doInBackground(Void... params) {

} catch (IOException e) {
errorMessage = mContext.getString(R.string.error_network);
e.printStackTrace();
return -1;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected Integer doInBackground(Void... params) {
} catch (IOException e) {
//There was a network error
errorMessage = mContext.getString(R.string.error_network);
Crashlytics.logException(e);
e.printStackTrace();
}
return -1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected Integer doInBackground(Void... params) {
} catch (IOException e) {
//There was a network error
errorMessage = mContext.getString(R.string.error_network);
Crashlytics.logException(e);
e.printStackTrace();
}

return -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void loadLicenses() {
licenses = ParseLicenseXml.Parse(mContext.getResources().getXml(R.xml.licenses));
} catch (XmlPullParserException | IOException e) {
Crashlytics.logException(e);
e.printStackTrace();
}
mView.showLicenses(licenses);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public void updatePrices(Price totalPrice) {
priceUsd.setText(totalPrice.getFormattedPrice(getActivity(), Currency.USD));
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.EditText;

import com.crashlytics.android.Crashlytics;
Expand Down Expand Up @@ -124,6 +123,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
}
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}

Expand Down Expand Up @@ -155,6 +155,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
}
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}

Expand Down Expand Up @@ -186,6 +187,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
}
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}

Expand Down Expand Up @@ -217,6 +219,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
}
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}
}

Expand All @@ -237,6 +240,7 @@ public void afterTextChanged(Editable s) {
inputUsd.setText(String.valueOf(Utility.formatDouble(price.getConvertedPrice(getActivity(), Currency.USD, false))));
} catch (Throwable t) {
Crashlytics.logException(t);
t.printStackTrace();
}

mAdManager.addAdView(mAdView);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public RemoteViews getViewAt(int position) {
} catch (InterruptedException | ExecutionException e) {
Crashlytics.logException(e);
rv.setImageViewBitmap(R.id.effect, null);
e.printStackTrace();
}

if (!item.isTradable()) {
Expand Down

0 comments on commit 6e9454a

Please sign in to comment.