mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 21:59:47 +03:00
Move Deck exception classes into own files
https://github.com/stefan-niedermann/nextcloud-deck/issues/208
This commit is contained in:
parent
b0ab109e5d
commit
ee882187fb
4 changed files with 10 additions and 6 deletions
|
@ -0,0 +1,4 @@
|
|||
package com.nextcloud.client.integration;
|
||||
|
||||
public class AppCannotHandelNotificationException extends Exception {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.nextcloud.client.integration;
|
||||
|
||||
public class AppNotInstalledException extends Exception {
|
||||
}
|
|
@ -12,10 +12,4 @@ public interface NotificationHandler {
|
|||
@NonNull
|
||||
Intent handleNotification(@NonNull final Notification notification,
|
||||
@NonNull final User user) throws AppNotInstalledException, AppCannotHandelNotificationException;
|
||||
|
||||
class AppNotInstalledException extends Exception {
|
||||
}
|
||||
|
||||
class AppCannotHandelNotificationException extends Exception {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@ import android.content.Intent;
|
|||
import android.util.Log;
|
||||
|
||||
import com.nextcloud.client.account.User;
|
||||
import com.nextcloud.client.integration.AppCannotHandelNotificationException;
|
||||
import com.nextcloud.client.integration.AppNotInstalledException;
|
||||
import com.nextcloud.client.integration.NotificationHandler;
|
||||
import com.owncloud.android.lib.resources.notifications.models.Notification;
|
||||
|
||||
|
|
Loading…
Reference in a new issue