mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-11 04:25:53 +00:00
Merge pull request #370 from Zillode/copy-id
Only copy device ID when finger lifts
This commit is contained in:
commit
cdffed64af
1 changed files with 5 additions and 3 deletions
|
@ -184,9 +184,11 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
mDeviceId.setOnTouchListener(new View.OnTouchListener() {
|
mDeviceId.setOnTouchListener(new View.OnTouchListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||||
mActivity.getApi().copyDeviceId(mDeviceId.getText().toString());
|
if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
|
||||||
view.performClick();
|
mActivity.getApi().copyDeviceId(mDeviceId.getText().toString());
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");
|
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");
|
||||||
|
|
Loading…
Reference in a new issue