Exemple #1
0
 static Bundle a(bs bsVar) {
   String str = null;
   int i = 0;
   if (bsVar == null) {
     return null;
   }
   Bundle bundle = new Bundle();
   if (bsVar.e() != null && bsVar.e().length > 1) {
     str = bsVar.e()[0];
   }
   Parcelable[] parcelableArr = new Parcelable[bsVar.a().length];
   while (i < parcelableArr.length) {
     Bundle bundle2 = new Bundle();
     bundle2.putString(p, bsVar.a()[i]);
     bundle2.putString(o, str);
     parcelableArr[i] = bundle2;
     i++;
   }
   bundle.putParcelableArray(q, parcelableArr);
   ca h = bsVar.h();
   if (h != null) {
     bundle.putParcelable(r, C0056bn.a(h));
   }
   bundle.putParcelable(s, bsVar.c());
   bundle.putParcelable(t, bsVar.d());
   bundle.putStringArray(u, bsVar.e());
   bundle.putLong(v, bsVar.g());
   return bundle;
 }
Exemple #2
0
 static bs a(Bundle bundle, bt btVar, cb cbVar) {
   Object obj = null;
   if (bundle == null) {
     return null;
   }
   String[] strArr;
   Parcelable[] parcelableArray = bundle.getParcelableArray(q);
   if (parcelableArray != null) {
     String[] strArr2 = new String[parcelableArray.length];
     for (int i = 0; i < strArr2.length; i++) {
       if (!(parcelableArray[i] instanceof Bundle)) {
         break;
       }
       strArr2[i] = ((Bundle) parcelableArray[i]).getString(p);
       if (strArr2[i] == null) {
         break;
       }
     }
     int i2 = 1;
     if (obj == null) {
       return null;
     }
     strArr = strArr2;
   } else {
     strArr = null;
   }
   PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(t);
   PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable(s);
   RemoteInput remoteInput = (RemoteInput) bundle.getParcelable(r);
   String[] stringArray = bundle.getStringArray(u);
   if (stringArray == null || stringArray.length != 1) {
     return null;
   }
   return btVar.b(
       strArr,
       remoteInput != null ? C0056bn.a(remoteInput, cbVar) : null,
       pendingIntent2,
       pendingIntent,
       stringArray,
       bundle.getLong(v));
 }