Skip to content

Commit

Permalink
fix crashes
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Feb 19, 2025
1 parent 0c75ba5 commit 4898e09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class NoteShareActivity extends BrandedActivity implements ShareeListAdap
public static final String ARG_ACCOUNT = "ACCOUNT";
public static final String FTAG_CHOOSER_DIALOG = "CHOOSER_DIALOG";

private final ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
private ScheduledExecutorService executorService;
private Future<?> future;
private static final long SEARCH_DELAY_MS = 500;

Expand All @@ -86,6 +86,7 @@ public class NoteShareActivity extends BrandedActivity implements ShareeListAdap
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

executorService = Executors.newSingleThreadScheduledExecutor();
binding = ActivityNoteShareBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
initializeArguments();
Expand Down

0 comments on commit 4898e09

Please sign in to comment.