mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Implements copy/paste text pipe for Minecraft
This commit is contained in:
parent
14ef7e1632
commit
c0bff47684
3 changed files with 52 additions and 34 deletions
|
|
@ -27,6 +27,8 @@ import android.system.*;
|
|||
|
||||
public class MainActivity extends LoggableActivity implements OnTouchListener, OnClickListener
|
||||
{
|
||||
public static volatile ClipboardManager GLOBAL_CLIPBOARD;
|
||||
|
||||
public static final String initText = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ";
|
||||
volatile public static boolean isPushPollCall;
|
||||
|
||||
|
|
@ -82,7 +84,7 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
//private EditText hiddenEditor;
|
||||
// private ViewGroup overlayView;
|
||||
private MCProfile.Builder mProfile;
|
||||
|
||||
|
||||
private DrawerLayout drawerLayout;
|
||||
private NavigationView navDrawer;
|
||||
|
||||
|
|
@ -131,6 +133,9 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
setContentView(R.layout.main);
|
||||
|
||||
try {
|
||||
// FIXME: is it safe fot multi thread?
|
||||
GLOBAL_CLIPBOARD = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
|
||||
|
||||
logFile = new File(Tools.MAIN_PATH, "latestlog.txt");
|
||||
logFile.delete();
|
||||
logFile.createNewFile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue