Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Only loading Crashlytics in relase (i.e., non-DEBUG) mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxieds committed Jan 26, 2018
1 parent 9db6303 commit 2e8e0b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ protected void onCreate(Bundle savedInstanceState) {
// fix bug where the tabs are blank when the application is relaunched:
if(runningActivity == null || !isTaskRoot()) {
super.onCreate(savedInstanceState);
Fabric.with(this, new Crashlytics());
if(!BuildConfig.DEBUG)
Fabric.with(this, new Crashlytics());
}
if(!isTaskRoot()) {
Log.w(TAG, "ReLaunch Intent Action: " + getIntent().getAction());
Expand Down

0 comments on commit 2e8e0b7

Please sign in to comment.