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

Commit 05c7a65c authored by Roman Birg's avatar Roman Birg Committed by Meninblack007
Browse files

SystemUI: add Weather display to status bar header



Change-Id: Ic2fea861c36f405d8a0e64cc9224f47088ac6351
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

frameworks: fix make updateapi for weather setting

Change-Id: I3a23cd432138e63e037b427ceaf62a87627dfde6
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent f8ae8161
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3685,6 +3685,12 @@ public final class Settings {
         * the setting value. See an example above.
         */

        /**
         * Boolean value on whether to show weather in the statusbar
         * @hide
         */
        public static final String STATUS_BAR_SHOW_WEATHER = "status_bar_show_weather";

        /**
          * Volume keys control cursor in text fields (default is 0)
          * 0 - Disabled
+3 −0
Original line number Diff line number Diff line
@@ -169,6 +169,9 @@
    <uses-permission android:name="cyanogenmod.permission.WRITE_SETTINGS" />
    <uses-permission android:name="cyanogenmod.permission.WRITE_SECURE_SETTINGS" />

    <!-- Weather -->
    <uses-permission android:name="com.cyanogenmod.lockclock.permission.READ_WEATHER" />

    <application
        android:name=".SystemUIApplication"
        android:persistent="true"
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <dimen name="weather_text_size">10sp</dimen>
</resources>
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <dimen name="weather_text_size">9sp</dimen>
</resources>
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <dimen name="weather_text_size">12sp</dimen>
</resources>
 No newline at end of file
Loading