Skip to content

Commit 3078213

Browse files
test to satisfy spotbugs
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent be723db commit 3078213

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/owncloud/android/jobs/NotificationJob.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ public class NotificationJob extends Job {
9393
private static final String KEY_NOTIFICATION_ACTION_TYPE = "KEY_NOTIFICATION_ACTION_TYPE";
9494
private static final String PUSH_NOTIFICATION_ID = "PUSH_NOTIFICATION_ID";
9595
private static final String NUMERIC_NOTIFICATION_ID = "NUMERIC_NOTIFICATION_ID";
96-
private static final String APP_SPREED = "spreed";
9796

98-
private SecureRandom randomId = new SecureRandom();
9997
private Context context;
10098
private UserAccountManager accountManager;
10199

@@ -154,6 +152,7 @@ protected Result onRunJob(@NonNull Params params) {
154152
}
155153

156154
private void sendNotification(Notification notification, Account account) {
155+
SecureRandom randomId = new SecureRandom();
157156
Intent intent = new Intent(context, NotificationsActivity.class);
158157
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
159158
intent.putExtra(KEY_NOTIFICATION_ACCOUNT, account.name);

0 commit comments

Comments
 (0)