Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd9629ce authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Merge "Port: Don't show phone unlock targets for devices without voice (1/2)" into cm-11.0

parents 84509dba 3dee4118
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@
    2. Left -->
    <integer name="def_qs_quick_pulldown">0</integer>

    <!-- Default for Settings.System.LOCKSCREEN_TARGETS. -->
    <!-- Defaults for Settings.System.LOCKSCREEN_TARGETS. -->
    <string name="def_lockscreen_targets" translatable="false"></string>
    <string name="def_lockscreen_targets_no_telephony" translatable="false"></string>
</resources>
+8 −2
Original line number Diff line number Diff line
@@ -2071,8 +2071,14 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            loadIntegerSetting(stmt, Settings.System.QS_QUICK_PULLDOWN,
                    R.integer.def_qs_quick_pulldown);

            if (mContext.getResources()
                    .getBoolean(com.android.internal.R.bool.config_voice_capable)) {
                loadStringSetting(stmt, Settings.System.LOCKSCREEN_TARGETS,
                        R.string.def_lockscreen_targets);
            } else {
                loadStringSetting(stmt, Settings.System.LOCKSCREEN_TARGETS,
                        R.string.def_lockscreen_targets_no_telephony);
            }
        } finally {
            if (stmt != null) stmt.close();
        }