Ignore:
Timestamp:
Oct 23, 2013, 8:34:45 AM (11 years ago)
Author:
Jose Ruiz <joseruiz@…>
Branches:
master
Children:
8243993
Parents:
f907928
Message:

Modificacion de menu de repositorio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TibisayMovil/src/ve/gob/cenditel/tibisaymovil/TibisayMovilActivity.java

    rf907928 r3fe55cf  
    9898                               
    9999                               
    100                                 // seleccion de gestionar certificados
    101 <<<<<<< HEAD
    102                                 if (function.equals(getString(R.string.certificados))){
    103                                         Toast.makeText(context, "Gestionar repositorio", duration).show();                                     
    104 =======
     100                                // seleccion de gestionar certificados 
    105101                                if (function.equals("Certificados")){
    106102                                        Toast.makeText(context, "Gestionar repositorio", duration).show();
     
    108104                                        certificate_dialog.show();
    109105                                        /*
    110 >>>>>>> c2318907ec781e759fbf9e1a0e0d0eb01a54dd36
    111106                                       
    112107                                        // Chequeo de version del API de Android para creacion de repositorio           
     
    259254                return builder.create();
    260255        }
    261 <<<<<<< HEAD
    262256
    263257       
     
    267261                startActivity(intent);
    268262        }
    269 =======
    270263       
    271264        //Crea dialogo de opciones para compartir archivos
     
    310303        //Crea dialogo de opciones para gestionar certificados
    311304        public AlertDialog makeCertificateOptionsDialog() {
    312                 final String[] option = new String[] {getString(R.string.manage_personal_certificates), getString(R.string.manage_certificates_for_encryption) };
     305;               
     306                final String[] option;
     307                if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH){
     308                        option = new String[] {getString(R.string.manage_personal_certificates), getString( R.string.manage_certificates_for_encryption) };
     309                } else {
     310                        option = new String[] {getString(R.string.manage_personal_certificates) };
     311                }
     312               
    313313                ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
    314314                        android.R.layout.select_dialog_item, option);
     
    319319               
    320320                  public void onClick(DialogInterface dialog, int which) {
    321                          
    322                           switch (which) {
    323                         case 0: // Certificados personales
    324                                 Log.i("DEBUG", "antes de activity call");
    325                                
    326                                 break;
    327                         case 1: // Certificados para cifrado
    328                                 Toast.makeText(getApplicationContext(), "Lanzar certificados de destinatarios", Toast.LENGTH_SHORT).show();
    329                                 manageRecipientCertificates();
    330                                 break;
    331                                
    332                         default:
    333                                 break;
     321                       
     322                        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH){
     323
     324                                switch (which) {
     325                                case 0: // Certificados personales
     326                                        testRepository();
     327                                        break;
     328                                case 1: // Certificados para cifrado
     329                                        manageRecipientCertificates();
     330                                        break;
     331                                }
     332                               
     333                        } else  {
     334                               
     335                                switch (which) {
     336                                case 0: // Certificados para cifrado
     337                                        manageRecipientCertificates();
     338                                        break;
     339                                }
     340                               
    334341                        }
     342                       
    335343                  }
    336344                 
     
    340348        }
    341349       
    342 >>>>>>> c2318907ec781e759fbf9e1a0e0d0eb01a54dd36
    343350}
Note: See TracChangeset for help on using the changeset viewer.