2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-01 06:35:09 +00:00

Fields can be local variables

This commit is contained in:
Albert Vaca Cintora
2024-03-01 23:48:04 +01:00
parent bcfacc0c34
commit 2cd88b56da

View File

@@ -48,8 +48,6 @@ public class MousePadActivity
private float mPrevX; private float mPrevX;
private float mPrevY; private float mPrevY;
private float mCurrentX;
private float mCurrentY;
private float mCurrentSensitivity; private float mCurrentSensitivity;
private float displayDpiMultiplier; private float displayDpiMultiplier;
private int scrollDirection = 1; private int scrollDirection = 1;
@@ -299,8 +297,8 @@ public class MousePadActivity
mPrevY = event.getY(); mPrevY = event.getY();
break; break;
case MotionEvent.ACTION_MOVE: case MotionEvent.ACTION_MOVE:
mCurrentX = event.getX(); float mCurrentX = event.getX();
mCurrentY = event.getY(); float mCurrentY = event.getY();
MousePadPlugin plugin = KdeConnect.getInstance().getDevicePlugin(deviceId, MousePadPlugin.class); MousePadPlugin plugin = KdeConnect.getInstance().getDevicePlugin(deviceId, MousePadPlugin.class);
if (plugin == null) { if (plugin == null) {