Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Log #2

Open
HTC600 opened this issue May 16, 2019 · 0 comments
Open

Copy Log #2

HTC600 opened this issue May 16, 2019 · 0 comments

Comments

@HTC600
Copy link

HTC600 commented May 16, 2019

Glass:
apktool/src/main/java/com/a4455jkjh/apktool/task/AbstractTask.java
Method:
protected void onPostExecute(Boolean result)
Replaced by:

protected void onPostExecute(Boolean result) {
		final CharSequence text =message.getText();
		dialog.dismiss();
		if (shouldShowFinishDialog()) {
			final Context ctx = this.ctx;
			final MessageView m = new MessageView(ctx);
			m.append(text);
			new AlertDialog.Builder(ctx).
				setTitle("Is Done").
				setView(m).
				setPositiveButton("Copy", new DialogInterface.OnClickListener(){
					@Override
					public void onClick(DialogInterface p1, int p2)
					{
						ClipboardManager clipboardManager = (ClipboardManager) ctx.getSystemService(Context.CLIPBOARD_SERVICE);
						ClipData clipData = ClipData.newPlainText("pather_log", text.toString());
						clipboardManager.setPrimaryClip(clipData);
						// TODO: Implement this method
					}

					private ClipboardManager getSystemService(String cLIPBOARD_SERVICE)
					{
						// TODO: Implement this method
						return null;
					}
				}).
				setNegativeButton("Ok", null).
				show();
		}
		if (refresh != null)
			refresh.refresh();
 	}
@HTC600 HTC600 closed this as completed May 16, 2019
@HTC600 HTC600 reopened this May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant