mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170884 - Use fully qualified android.R.*. r?nalexander
This commit is contained in:
parent
0b385264fe
commit
7af4011d58
@ -17,7 +17,6 @@ import org.mozilla.gecko.util.GamepadUtils;
|
||||
import org.mozilla.gecko.util.ThreadUtils;
|
||||
import org.mozilla.gecko.util.ThreadUtils.AssertBehavior;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
@ -291,10 +290,10 @@ class GeckoInputConnection
|
||||
int selEnd = Selection.getSelectionEnd(editable);
|
||||
|
||||
switch (id) {
|
||||
case R.id.selectAll:
|
||||
case android.R.id.selectAll:
|
||||
setSelection(0, editable.length());
|
||||
break;
|
||||
case R.id.cut:
|
||||
case android.R.id.cut:
|
||||
// If selection is empty, we'll select everything
|
||||
if (selStart == selEnd) {
|
||||
// Fill the clipboard
|
||||
@ -308,10 +307,10 @@ class GeckoInputConnection
|
||||
editable.delete(selStart, selEnd);
|
||||
}
|
||||
break;
|
||||
case R.id.paste:
|
||||
case android.R.id.paste:
|
||||
commitText(Clipboard.getText(), 1);
|
||||
break;
|
||||
case R.id.copy:
|
||||
case android.R.id.copy:
|
||||
// Copy the current selection or the empty string if nothing is selected.
|
||||
String copiedText = selStart == selEnd ? "" :
|
||||
editable.toString().substring(
|
||||
|
Loading…
Reference in New Issue
Block a user