Skip to content

Commit

Permalink
Handle default long
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Mar 13, 2024
1 parent c86b6cf commit e488cb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static void setActiveSignedPreKeyId(@NonNull Context context, int value)
}

public static long getActiveSignedPreKeyTimestamp(@NonNull Context context) {
return getLongPreference(context, ACTIVE_SIGNED_PRE_KEY_TIMESTAMP, 0);
return getLongPreference(context, ACTIVE_SIGNED_PRE_KEY_TIMESTAMP, 0L);
}

public static void setActiveSignedPreKeyTimestamp(@NonNull Context context, long value) {
Expand All @@ -130,7 +130,7 @@ public static void setActiveIdentityKeyId(@NonNull Context context, int value) {
}

public static long getActiveIdentityKeyTimestamp(@NonNull Context context) {
return getLongPreference(context, ACTIVE_IDENTITY_KEY_TIMESTAMP, 0);
return getLongPreference(context, ACTIVE_IDENTITY_KEY_TIMESTAMP, 0L);
}

public static void setActiveIdentityKeyTimestamp(@NonNull Context context, long value) {
Expand Down

0 comments on commit e488cb1

Please sign in to comment.