正在查看: Adobe Acrobat v15.3 应用的 ARCreatePDFActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Adobe Acrobat v15.3 应用的 ARCreatePDFActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.adobe.reader.services.cpdf;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.adobe.libs.buildingblocks.utils.BBFileUtils;
import com.adobe.libs.c.a.a;
import com.adobe.libs.services.h.n;
import com.adobe.reader.R;
import com.adobe.reader.analytics.ARDCMAnalytics;
import com.adobe.reader.config.ARConstants;
import com.adobe.reader.framework.ui.FWDownloadFileAsyncTask;
import com.adobe.reader.misc.ARAlert;
import com.adobe.reader.misc.ARApp;
import com.adobe.reader.utils.ARIntentUtils;
import com.adobe.reader.viewer.ARSplitPaneActivity;
public class ARCreatePDFActivity extends a {
private FWDownloadFileAsyncTask mDownloadFileHandler;
void doActionAfterGettingDocPath(String str) {
if (str == null) {
n.g();
ARAlert.displayErrorDlg(this, null, ARApp.getAppContext().getResources().getString(R.string.IDS_CREATE_FAILED_DOCPATH_INTENT_ERROR), new ARAlert.OnPositiveButtonClickedClickHandler() {
@Override
public void onPositiveButtonClick() {
ARCreatePDFActivity.this.finish();
}
});
return;
}
Intent intent = new Intent(this, (Class<?>) ARSplitPaneActivity.class);
intent.putExtra(ARSplitPaneActivity.CREATE_PDF_DOC_PATH, str);
intent.setFlags(67108864);
startActivity(intent);
finish();
}
@Override
public void onBackPressed() {
if (this.mDownloadFileHandler != null) {
this.mDownloadFileHandler.cancel();
this.mDownloadFileHandler = null;
}
super.onBackPressed();
}
@Override
public void onCreateRAW(Bundle bundle) {
super.onCreateRAW(bundle);
setContentView(R.layout.intent_filter_activity);
((ProgressBar) findViewById(R.id.progressForCPDF)).setVisibility(0);
Intent intent = getIntent();
if (intent != null) {
try {
String action = intent.getAction();
if (action != null) {
if (action.equals("android.intent.action.VIEW")) {
ARDCMAnalytics.getInstance().trackAction("External View", ARDCMAnalytics.CREATE_PDF, (String) null);
} else if (action.equals("android.intent.action.SEND")) {
ARDCMAnalytics.getInstance().trackAction("External Send", ARDCMAnalytics.CREATE_PDF, (String) null);
}
}
String docPathFromIntentDataLocally = ARIntentUtils.getDocPathFromIntentDataLocally(intent, getContentResolver());
if (docPathFromIntentDataLocally != null && BBFileUtils.e(docPathFromIntentDataLocally)) {
doActionAfterGettingDocPath(docPathFromIntentDataLocally);
} else {
this.mDownloadFileHandler = new FWDownloadFileAsyncTask(this, getIntent(), new FWDownloadFileAsyncTask.FWAfterDownloadFileHandler() {
@Override
public void onFailure() {
ARCreatePDFActivity.this.finish();
}
@Override
public void onSuccess(String str) {
ARCreatePDFActivity.this.doActionAfterGettingDocPath(str);
}
}, null, true);
this.mDownloadFileHandler.taskExecute(new Void[0]);
}
} catch (IncompatibleClassChangeError e) {
com.adobe.libs.services.c.a.a();
Toast.makeText(com.adobe.libs.services.c.a.b(), R.string.IDS_ERR_NONE, ARConstants.TOAST_MSG_DISPLAY_TIME_IN_MS).show();
finish();
}
}
}
@Override
public void onDestroyRAW() {
super.onDestroyRAW();
}
@Override
public void onPauseRAW() {
ARDCMAnalytics.getInstance().pauseCollectingLifecycleData();
super.onPauseRAW();
}
@Override
public void onResumeRAW() {
ARDCMAnalytics.getInstance().collectLifecycleData();
super.onResumeRAW();
}
}