~phablet-team/powerd/trunk

« back to all changes in this revision

Viewing changes to src/powerd.cpp

  • Committer: CI Train Bot
  • Author(s): Alexandros Frantzis
  • Date: 2015-09-30 12:29:37 UTC
  • mfrom: (178.1.4 unity-screen-reason-call)
  • Revision ID: ci-train-bot@canonical.com-20150930122937-n2wpyvcsx5ga37t4
Turn the screen on using reason call/call_done when a voice call is received/finishes respectively Fixes: #1291455
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
           gpointer    user_data)
257
257
{
258
258
    if (!strcmp(signal_name, "CallAdded") && call_added++ <= 0) {
259
 
        turn_display_on(TRUE, UNITY_SCREEN_REASON_NORMAL);
 
259
        turn_display_on(TRUE, UNITY_SCREEN_REASON_SNAP_DECISION);
260
260
 
261
261
        powerd_info("incoming call");
262
262
 
265
265
 
266
266
        //Turn the display back on when all calls are over
267
267
        if (call_added == 0)
268
 
            turn_display_on(TRUE, UNITY_SCREEN_REASON_NORMAL);
 
268
            turn_display_on(TRUE, UNITY_SCREEN_REASON_CALL_DONE);
269
269
 
270
270
        powerd_info("call removed");        
271
271
    }