Skip to content
Snippets Groups Projects
Commit 22f40d1a authored by Aline Bonnet's avatar Aline Bonnet
Browse files

ui: move the buttons in the notifications

When incoming call, the hangup button is to the right of the accept
button in the notification. In the callfragment, it's the opposite.
This commit changes order of this buttons in the notification to be
consistent.

Change-Id: I11faec0e6796ecf553923cbb70936827c60976d9
Tuleap: #1450
parent 4b17bfe7
No related branches found
No related tags found
No related merge requests found
...@@ -240,15 +240,15 @@ public class ActionHelper { ...@@ -240,15 +240,15 @@ public class ActionHelper {
.setContentText(ctx.getText(R.string.notif_incoming_call)) .setContentText(ctx.getText(R.string.notif_incoming_call))
.setContentIntent(gotoIntent) .setContentIntent(gotoIntent)
.setFullScreenIntent(gotoIntent, true) .setFullScreenIntent(gotoIntent, true)
.addAction(R.drawable.ic_action_accept, ctx.getText(R.string.action_call_accept), .addAction(R.drawable.ic_call_end_white, ctx.getText(R.string.action_call_decline),
PendingIntent.getService(ctx, new Random().nextInt(), PendingIntent.getService(ctx, new Random().nextInt(),
new Intent(LocalService.ACTION_CALL_ACCEPT) new Intent(LocalService.ACTION_CALL_REFUSE)
.setClass(ctx, LocalService.class) .setClass(ctx, LocalService.class)
.setData(callUri), .setData(callUri),
PendingIntent.FLAG_ONE_SHOT)) PendingIntent.FLAG_ONE_SHOT))
.addAction(R.drawable.ic_call_end_white, ctx.getText(R.string.action_call_decline), .addAction(R.drawable.ic_action_accept, ctx.getText(R.string.action_call_accept),
PendingIntent.getService(ctx, new Random().nextInt(), PendingIntent.getService(ctx, new Random().nextInt(),
new Intent(LocalService.ACTION_CALL_REFUSE) new Intent(LocalService.ACTION_CALL_ACCEPT)
.setClass(ctx, LocalService.class) .setClass(ctx, LocalService.class)
.setData(callUri), .setData(callUri),
PendingIntent.FLAG_ONE_SHOT)) PendingIntent.FLAG_ONE_SHOT))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment