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

Commit af09c054 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Etar: Request to disable battery optimizations



Required to ensure notifications and service works as intended.

Show an info menu item on toolbar if optimizations are enabled to
attract user's attention to disable it.

Signed-off-by: default avatarAayush Gupta <aayushgupta219@gmail.com>
Change-Id: I540028aa44b47b7353582168f85f43679b931572
parent 58097aa3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>

    <queries>
        <package android:name="at.bitfire.davdroid" />
+25 −4
Original line number Diff line number Diff line
<vector android:height="24dp" android:tint="?attr/iconSettingsAbout"
    android:viewportHeight="24.0" android:viewportWidth="24.0"
    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
    <path android:fillColor="#FF000000" android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z"/>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Calyx Institute

     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.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:tint="?attr/colorControlNormal"
    android:viewportWidth="24.0"
    android:viewportHeight="24.0">
    <path
        android:fillColor="@android:color/white"
        android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z" />
</vector>
+3 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent">
@@ -112,7 +113,8 @@
                    android:src="@drawable/ic_info_outline"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:layout_gravity="center" />
                    android:layout_gravity="center"
                    app:tint="?attr/iconSettingsAbout" />

                <LinearLayout
                    android:layout_width="fill_parent"
+7 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
     Copyright (C) 2022 The Calyx Institute

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -22,6 +23,12 @@
        android:icon="@drawable/today_icon"
        android:title="@string/goto_today"
        app:showAsAction="withText|ifRoom" />
    <item
        android:id="@+id/action_info"
        android:alphabeticShortcut="i"
        android:icon="@drawable/ic_info_outline"
        android:title="@string/menu_info"
        app:showAsAction="withText|ifRoom" />
    <item
        android:id="@+id/action_goto"
        android:alphabeticShortcut="g"
+7 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
     Copyright (C) 2022 The Calyx Institute

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -22,6 +23,12 @@
        android:icon="@drawable/today_icon"
        android:title="@string/goto_today"
        app:showAsAction="always|withText" />
    <item
        android:id="@+id/action_info"
        android:alphabeticShortcut="i"
        android:icon="@drawable/ic_info_outline"
        android:title="@string/menu_info"
        app:showAsAction="always|withText" />
    <item
        android:id="@+id/action_goto"
        android:alphabeticShortcut="g"
Loading