Skip to content

Commit

Permalink
add check for prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisladleo committed Apr 24, 2019
1 parent 35c3b7b commit 92dc688
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.google.gson.reflect.TypeToken;

import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.Contract;
import org.joda.time.DateTime;
import org.joda.time.Months;
import org.json.JSONException;
Expand Down Expand Up @@ -876,8 +877,8 @@ public static String getColorValue(Context cxt, AlertStatus alertStatus) {
return "#" + Integer.toHexString(cxt.getResources().getColor(org.smartregister.immunization.R.color.alert_na)).substring(2);
}
}
private static String getFileName(String fileName, String prefix) {

public static String getFileName(String fileName, String prefix) {
if(prefix != null) {
return prefix + "_" + fileName;
} else {
Expand Down

0 comments on commit 92dc688

Please sign in to comment.