Loading packages/SystemUI/src/com/android/systemui/qs/tiles/PowerShareTile.java +6 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); } } Loading @@ -134,7 +135,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState> } else { mNotificationManager.cancel(NOTIFICATION_ID); } } catch (RemoteException ex) { } catch (RemoteException | ServiceSpecificException ex) { ex.printStackTrace(); } } Loading @@ -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(); } } Loading Loading @@ -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(); } Loading Loading @@ -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(); } Loading Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/PowerShareTile.java +6 −5 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); } } Loading @@ -134,7 +135,7 @@ public class PowerShareTile extends QSTileImpl<BooleanState> } else { mNotificationManager.cancel(NOTIFICATION_ID); } } catch (RemoteException ex) { } catch (RemoteException | ServiceSpecificException ex) { ex.printStackTrace(); } } Loading @@ -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(); } } Loading Loading @@ -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(); } Loading Loading @@ -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(); } Loading