-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dummy activity Signed-off-by: Stefan Niedermann <info@niedermann.it>
- Loading branch information
1 parent
e4071cd
commit a0b37f0
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
app/src/main/java/it/niedermann/nextcloud/deck/ui/PushNotificationActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package it.niedermann.nextcloud.deck.ui; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.os.PersistableBundle; | ||
|
||
import androidx.annotation.Nullable; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import it.niedermann.nextcloud.deck.DeckLog; | ||
|
||
public class PushNotificationActivity extends AppCompatActivity { | ||
|
||
@Override | ||
public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) { | ||
super.onCreate(savedInstanceState, persistentState); | ||
|
||
Intent receivedIntent = getIntent(); | ||
String receivedAction; | ||
String receivedType; | ||
receivedAction = receivedIntent.getAction(); | ||
receivedType = receivedIntent.getType(); | ||
DeckLog.info(receivedAction); | ||
DeckLog.info(receivedType); | ||
|
||
// TODO simply open the given URL until proper handling has been implemented | ||
} | ||
} |