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

Commit 301c48d3 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-22.2' into a15

parents a8acbbc0 b7b44232
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.os.Handler;
import android.os.Looper;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.ServiceSpecificException;
import android.service.quicksettings.Tile;
import android.util.Log;

@@ -123,7 +124,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
        if (mBatteryController.isPowerSave()) {
            try {
                mPowerShare.setEnabled(false);
            } catch (RemoteException ex) {
            } catch (RemoteException | ServiceSpecificException ex) {
                ex.printStackTrace();
            }
        }
@@ -134,7 +135,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
            } else {
                mNotificationManager.cancel(NOTIFICATION_ID);
            }
        } catch (RemoteException ex) {
        } catch (RemoteException | ServiceSpecificException ex) {
            ex.printStackTrace();
        }
    }
@@ -156,7 +157,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
        try {
            mPowerShare.setEnabled(!mPowerShare.isEnabled());
            refreshState();
        } catch (RemoteException ex) {
        } catch (RemoteException | ServiceSpecificException ex) {
            ex.printStackTrace();
        }
    }
@@ -189,7 +190,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
        state.hasLongClickEffect = false;
        try {
            state.value = mPowerShare.isEnabled();
        } catch (RemoteException ex) {
        } catch (RemoteException | ServiceSpecificException ex) {
            state.value = false;
            ex.printStackTrace();
        }
@@ -228,7 +229,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
    private int getMinBatteryLevel() {
        try {
            return mPowerShare.getMinBattery();
        } catch (RemoteException ex) {
        } catch (RemoteException | ServiceSpecificException ex) {
            ex.printStackTrace();
        }