MemcardPhotocopyTop.java 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.epson.memcardacc;
  2. import android.content.Intent;
  3. import android.os.Bundle;
  4. import android.view.View;
  5. import com.epson.memcardacc.MemcardTempAlertDialog;
  6. import epson.print.C2135R;
  7. public class MemcardPhotocopyTop extends MemcardTopSuper {
  8. protected static final int DIALOG_TYPE_NOT_READY = 101;
  9. protected int getStorageSetType() {
  10. return 2;
  11. }
  12. public void launchReaderActivity(int i) {
  13. }
  14. protected void onCreate(Bundle bundle) {
  15. this.mBitmapCache = MemcardBitmapCache.getInstance(this);
  16. if (this.mBitmapCache == null || !this.mBitmapCache.checkEnv()) {
  17. new MemcardTempAlertDialog().showAlertDialog(this, new MemcardTempAlertDialog.DialogCallback() {
  18. public void onPositiveCallback() {
  19. MemcardPhotocopyTop.this.finish();
  20. }
  21. });
  22. }
  23. if (bundle == null) {
  24. CifsAccess.clearSmbAuthInfo();
  25. }
  26. super.onCreate(bundle);
  27. setContentView((int) R.layout.activity_mcphotocopy_top);
  28. setActionBar((int) R.string.FunctionName_iPrint_PhotoTransfer, true);
  29. this.mLaunchType = 0;
  30. findViewById(R.C2137id.photocopy_button).setOnClickListener(new View.OnClickListener() {
  31. public void onClick(View view) {
  32. MemcardPhotocopyTop.this.launchWriter();
  33. }
  34. });
  35. }
  36. /* access modifiers changed from: private */
  37. public void launchWriter() {
  38. if (this.mLaunchType == 0) {
  39. this.mLaunchType = 1;
  40. startMemcardStorageCheck();
  41. }
  42. }
  43. public void back_home_button_clicked(View view) {
  44. finish();
  45. }
  46. private void localShowDialog(int i) {
  47. if (!this.mActivityIsFinishing && this.mIsActivityForeground) {
  48. LocalAlertDialogFragment localAlertDialogFragment = null;
  49. if (i == 1) {
  50. localAlertDialogFragment = LocalAlertDialogFragment.newInstance(R.string.mcphotocopy_media_not_found_message, R.string.mcphotocopy_media_not_found_title, 101);
  51. }
  52. if (localAlertDialogFragment != null) {
  53. localAlertDialogFragment.show(getSupportFragmentManager(), "error_dialog");
  54. } else {
  55. super.localShowDialog(i);
  56. }
  57. }
  58. }
  59. public void launchWriterActivity() {
  60. startActivity(new Intent(this, PhotoCopyImageSelectActivity.class));
  61. }
  62. }