comparison app/src/main/java/com/five_ten_sg/connectbot/ConsoleActivity.java @ 457:105815cce146 stable-1.9.3-3

minimum version android 5, target and compile version api 28
author Carl Byington <carl@five-ten-sg.com>
date Tue, 29 Jan 2019 11:21:57 -0800
parents d29cce60f393
children 2043bbaac86e
comparison
equal deleted inserted replaced
456:b00031b2d6ac 457:105815cce146
50 import android.preference.PreferenceManager; 50 import android.preference.PreferenceManager;
51 import android.text.ClipboardManager; 51 import android.text.ClipboardManager;
52 import android.text.InputType; 52 import android.text.InputType;
53 import android.text.method.PasswordTransformationMethod; 53 import android.text.method.PasswordTransformationMethod;
54 import android.text.method.SingleLineTransformationMethod; 54 import android.text.method.SingleLineTransformationMethod;
55 import android.util.FloatMath;
56 import android.util.Log; 55 import android.util.Log;
57 import android.view.GestureDetector; 56 import android.view.GestureDetector;
58 import android.view.KeyEvent; 57 import android.view.KeyEvent;
59 import android.view.LayoutInflater; 58 import android.view.LayoutInflater;
60 import android.view.Menu; 59 import android.view.Menu;
687 flip.setLongClickable(true); 686 flip.setLongClickable(true);
688 flip.setOnTouchListener(new OnTouchListener() { 687 flip.setOnTouchListener(new OnTouchListener() {
689 public boolean onTouch(View v, MotionEvent event) { 688 public boolean onTouch(View v, MotionEvent event) {
690 // when copying, highlight the area 689 // when copying, highlight the area
691 if (copySource != null && copySource.isSelectingForCopy()) { 690 if (copySource != null && copySource.isSelectingForCopy()) {
692 int row = (int)FloatMath.floor(event.getY() / copySource.charHeight); 691 int row = (int)Math.floor(event.getY() / copySource.charHeight);
693 int col = (int)FloatMath.floor(event.getX() / copySource.charWidth); 692 int col = (int)Math.floor(event.getX() / copySource.charWidth);
694 SelectionArea area = copySource.getSelectionArea(); 693 SelectionArea area = copySource.getSelectionArea();
695 694
696 switch (event.getAction()) { 695 switch (event.getAction()) {
697 case MotionEvent.ACTION_DOWN: 696 case MotionEvent.ACTION_DOWN:
698 697