Remove unused code
This commit is contained in:
parent
4b2c1d9961
commit
f16522cdc4
3 changed files with 0 additions and 34 deletions
|
@ -16,7 +16,6 @@ import android.text.TextUtils;
|
|||
import android.util.AttributeSet;
|
||||
import android.view.ContextMenu;
|
||||
import android.view.ContextMenu.ContextMenuInfo;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
@ -500,18 +499,6 @@ public class MessageContainerView extends LinearLayout implements OnCreateContex
|
|||
}
|
||||
}
|
||||
|
||||
public void zoom(KeyEvent event) {
|
||||
if (event.isShiftPressed()) {
|
||||
mMessageContentView.zoomIn();
|
||||
} else {
|
||||
mMessageContentView.zoomOut();
|
||||
}
|
||||
}
|
||||
|
||||
public void beginSelectingText() {
|
||||
mMessageContentView.emulateShiftHeld();
|
||||
}
|
||||
|
||||
public void resetView() {
|
||||
setLoadPictures(false);
|
||||
mAttachments.removeAllViews();
|
||||
|
|
|
@ -7,14 +7,11 @@ import androidx.annotation.NonNull;
|
|||
import androidx.annotation.Nullable;
|
||||
import android.util.AttributeSet;
|
||||
import timber.log.Timber;
|
||||
import android.view.KeyEvent;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebSettings.LayoutAlgorithm;
|
||||
import android.webkit.WebSettings.RenderPriority;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.fsck.k9.ui.R;
|
||||
import com.fsck.k9.mailstore.AttachmentResolver;
|
||||
|
||||
|
||||
|
@ -134,22 +131,6 @@ public class MessageWebView extends WebView {
|
|||
resumeTimers();
|
||||
}
|
||||
|
||||
/*
|
||||
* Emulate the shift key being pressed to trigger the text selection mode
|
||||
* of a WebView.
|
||||
*/
|
||||
public void emulateShiftHeld() {
|
||||
try {
|
||||
|
||||
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
|
||||
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
|
||||
shiftPressEvent.dispatch(this, null, null);
|
||||
Toast.makeText(getContext() , R.string.select_text_now, Toast.LENGTH_SHORT).show();
|
||||
} catch (Exception e) {
|
||||
Timber.e(e, "Exception in emulateShiftHeld()");
|
||||
}
|
||||
}
|
||||
|
||||
public interface OnPageFinishedListener {
|
||||
void onPageFinished();
|
||||
}
|
||||
|
|
|
@ -887,8 +887,6 @@ Please submit bug reports, contribute new features and ask questions at
|
|||
<string name="confirm_discard_draft_message_title">Discard message?</string>
|
||||
<string name="confirm_discard_draft_message">Are you sure you want to discard this message?</string>
|
||||
|
||||
<string name="select_text_now">Select text to copy.</string>
|
||||
|
||||
<string name="dialog_confirm_clear_local_folder_title">Clear local messages?</string>
|
||||
<string name="dialog_confirm_clear_local_folder_message">This will remove all local messages from the folder. No messages will be deleted from the server.</string>
|
||||
<string name="dialog_confirm_clear_local_folder_action">Clear messages</string>
|
||||
|
|
Loading…
Reference in a new issue