Skip to content

Commit

Permalink
Catch exception when version code is 1 (debug builds) (#2980)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Mar 18, 2020
1 parent 20b58b2 commit ca2092a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -106,7 +106,7 @@ public static String versionCodeToDate(final @NonNull Context context, final int
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
formatted = format.format(cal.getTime());

} catch (StringIndexOutOfBoundsException e) {
} catch (StringIndexOutOfBoundsException | NumberFormatException e) {
formatted = context.getString(R.string.settings_version_developer);
}

Expand Down

0 comments on commit ca2092a

Please sign in to comment.