~andreas-pokorny/powerd/blank-on-proximity-powerstate

« back to all changes in this revision

Viewing changes to libsuspend/libsuspend.c

  • Committer: CI bot
  • Author(s): Yuan-Chen Cheng
  • Date: 2014-09-03 04:56:37 UTC
  • mfrom: (140.1.1 powerd_lp1323286)
  • Revision ID: ps-jenkins@lists.canonical.com-20140903045637-sf6e97uvnric384p
Use android standard way on libsuspend detection. Fixes: 1323286

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
void libsuspend_init(int force_mock)
27
27
{
28
28
    if (!force_mock) {
 
29
        handler = earlysuspend_detect();
 
30
        if (handler)
 
31
            return;
 
32
 
29
33
        handler = autosleep_detect();
30
34
        if (handler)
31
35
            return;
32
36
 
33
 
        handler = earlysuspend_detect();
34
 
        if (handler)
35
 
            return;
36
 
 
37
37
        handler = legacy_detect();
38
38
        if (handler)
39
39
            return;