Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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 authored Mar 18, 2020
1 parent 20b58b2 commit ca2092a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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.