Skip to content

Commit

Permalink
Fix stop() & remove overkill resetSurvey()
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoserranoa committed Dec 16, 2020
1 parent 28f3f18 commit a9394d3
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,12 @@ public static SurveyManager getSharedInstance() {
synchronized void stop() {
handler.removeCallbacks(surveyRunner);

resetSurvey();

if (surveySupportFragment != null) {
surveySupportFragment.dismiss();
surveySupportFragment = null;
} else if (surveyFragment != null) {
surveyFragment.dismiss();
surveyFragment = null;
}
resetSurvey();
Log.d(Constants.TAG, "Survey stopped");
}

Expand Down Expand Up @@ -371,7 +368,6 @@ private String getOriginUrl(Activity activity) {
originUrl = pm.getApplicationLabel(appInfo).toString();
} catch (Exception e) {
Log.e(Constants.TAG, "getOriginUrl: " + e.toString());
resetSurvey();
e.printStackTrace();
}
}
Expand Down

0 comments on commit a9394d3

Please sign in to comment.