mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
don't crash if intent is null
This commit is contained in:
parent
9c7213e42b
commit
ec393bc0c8
1 changed files with 3 additions and 3 deletions
|
@ -204,8 +204,8 @@ public class Utils {
|
||||||
Intents is to send a different second param each time,
|
Intents is to send a different second param each time,
|
||||||
though the docs say that param's ignored.
|
though the docs say that param's ignored.
|
||||||
*/
|
*/
|
||||||
PendingIntent pi =
|
PendingIntent pi = null == intent ? null
|
||||||
PendingIntent.getActivity( context, Utils.nextRandomInt(), intent,
|
: PendingIntent.getActivity( context, Utils.nextRandomInt(), intent,
|
||||||
PendingIntent.FLAG_ONE_SHOT );
|
PendingIntent.FLAG_ONE_SHOT );
|
||||||
|
|
||||||
Notification notification =
|
Notification notification =
|
||||||
|
|
Loading…
Add table
Reference in a new issue