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