File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React, { useState } from 'react';
33import Button from '@components/Button' ;
44import Dialog from '@components/Dialog' ;
55import Text from '@components/Text' ;
6- import { View } from 'react-native' ;
6+ import { Linking , View } from 'react-native' ;
77
88const runSync = require ( '../tasks/TodoistHabitSync' ) ;
99
@@ -43,6 +43,7 @@ function SyncDialog({ visible, onDismiss }: SyncDialogProps) {
4343 actions = {
4444 < Dialog . Actions >
4545 < Button onPress = { onDismiss } > Cancel</ Button >
46+ < Button mode = "tonal" onPress = { ( ) => Linking . sendIntent ( "android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS" ) } > Battery Settings</ Button >
4647 < Button mode = "contained" onPress = { ( ) => { runSync ( ) ; onDismiss ( ) ; } } > Run Sync</ Button >
4748 </ Dialog . Actions >
4849 }
You can’t perform that action at this time.
0 commit comments