Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit fd62ef2

Browse files
Rename field to clarify
1 parent 0d7935a commit fd62ef2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mobile/src/main/java/org/codechimp/ttw/PluginActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class PluginActivity extends AbstractPluginActivity {
4646
private String patternValue;
4747

4848
final Context context = this;
49-
private long lastTapStart = 0;
49+
private long lastTouchAction = 0;
5050
ArrayList<Long> taps = new ArrayList<>();
5151

5252
@Override
@@ -104,10 +104,10 @@ public void onClick(View v) {
104104
public boolean onTouch(View v, MotionEvent event) {
105105
if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_DOWN) {
106106
Long now = System.currentTimeMillis();
107-
if (lastTapStart > 0)
108-
taps.add(now - lastTapStart);
107+
if (lastTouchAction > 0)
108+
taps.add(now - lastTouchAction);
109109

110-
lastTapStart = now;
110+
lastTouchAction = now;
111111
}
112112

113113
return false;

0 commit comments

Comments
 (0)