Skip to content

Commit 90ad49c

Browse files
authored
Merge pull request #17 from purejava/libappindicator
Change TrayMenuController
2 parents 4ec1101 + 17fbf49 commit 90ad49c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import org.cryptomator.integrations.common.IntegrationsLoader;
44
import org.jetbrains.annotations.ApiStatus;
55

6-
import java.io.IOException;
7-
import java.io.InputStream;
6+
import java.net.URI;
87
import java.util.List;
98
import java.util.Optional;
109

@@ -23,20 +22,20 @@ static Optional<TrayMenuController> get() {
2322
/**
2423
* Displays an icon on the system tray.
2524
*
26-
* @param imageData What image to show
25+
* @param imageUri What image to show
2726
* @param defaultAction Action to perform when interacting with the icon directly instead of its menu
2827
* @param tooltip Text shown when hovering
2928
* @throws TrayMenuException thrown when adding the tray icon failed
3029
*/
31-
void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException;
30+
void showTrayIcon(URI imageUri, Runnable defaultAction, String tooltip) throws TrayMenuException;
3231

3332
/**
3433
* Updates the icon on the system tray.
3534
*
36-
* @param imageData What image to show
35+
* @param imageUri What image to show
3736
* @throws IllegalStateException thrown when called before an icon has been added
3837
*/
39-
void updateTrayIcon(byte[] imageData);
38+
void updateTrayIcon(URI imageUri);
4039

4140
/**
4241
* Show the given options in the tray menu.

0 commit comments

Comments
 (0)