Пример #1
0
 public void run() {
   try {
     Object obj = new AuthorizationCredentials(mUser.netflixId, mUser.secureNetflixId);
     Object obj1 = getCommonRequestParameters(mContext);
     obj1 =
         getEvents(
             mUser.esn,
             ((CommonRequestParameters) (obj1)),
             ((AuthorizationCredentials) (obj)),
             mDepplinkParams);
     obj =
         new CustomerEventCommand(
             mUser.esn, ((AuthorizationCredentials) (obj)), ((JSONArray) (obj1)).toString());
     Log.d("nf_rest", "Executing MdpFromDeepLink WebAPI call start");
     obj = ((CustomerEventCommand) (obj)).execute();
     Log.d("nf_rest", "Executing MdpFromDeepLink WebAPI call done");
     if (Log.isLoggable("nf_rest", 3)) {
       Log.d(
           "nf_rest",
           (new StringBuilder())
               .append("MdpFromDeepLink response: ")
               .append(((String) (obj)))
               .toString());
     }
     return;
   } catch (Throwable throwable) {
     Log.e("nf_rest", "Failed to execute MdpFromDeepLink call!", throwable);
   }
 }
    public void setPreferredLanguages(String s)
    {
        String s1;
label0:
        {
            if (s != null)
            {
                s1 = s;
                if (!"".equals(s.trim()))
                {
                    break label0;
                }
            }
            Log.e("nf_loc", "Empty list of preferred languages, set to default");
            s1 = "";
        }
        preferredLanguages = s1;
        UserLocale userlocale = findBestMatch(s1);
        s = userlocale;
        if (userlocale == null)
        {
            Log.w("nf_loc", (new StringBuilder()).append("Match is not found under application supported languages for prefered languages: ").append(s1).append(". Default to ").append(defaultAppLocale).toString());
            s = defaultAppLocale;
        }
        setApplicationLanguage(s);
    }
Пример #3
0
 private void setArguments(String s)
 {
     JSONObject jsonobject = new JSONObject();
     try
     {
         jsonobject.put("uuid", s);
         arguments = jsonobject.toString();
         return;
     }
     // Misplaced declaration of an exception variable
     catch (String s) { }
     break MISSING_BLOCK_LABEL_26;
     s;
     Log.e("nf_invoke", "Failed to create JSON object", s);
     return;
 }
Пример #4
0
    public static boolean putBooleanPref(Context context, String s, boolean flag)
    {
        boolean flag1;
        flag1 = false;
        if (!validate(context, s))
        {
            return false;
        }
        context = context.getSharedPreferences("nfxpref", 0).edit();
        context.putBoolean(s, flag);
        context.commit();
        flag = true;
_L2:
        return flag;
        context;
        Log.e("nfxpref", "Failed to save to preferences!", context);
        flag = flag1;
        if (true) goto _L2; else goto _L1
Пример #5
0
 public static String getStringPref(Context context, String s, String s1)
 {
     if (!validate(context, s))
     {
         return s1;
     }
     try
     {
         context = context.getSharedPreferences("nfxpref", 0).getString(s, s1);
     }
     // Misplaced declaration of an exception variable
     catch (Context context)
     {
         Log.e("nfxpref", "Failed to get preferences!", context);
         return s1;
     }
     return context;
 }
Пример #6
0
 public static int getIntPref(Context context, String s, int i)
 {
     if (!validate(context, s))
     {
         return i;
     }
     int j;
     try
     {
         j = context.getSharedPreferences("nfxpref", 0).getInt(s, i);
     }
     // Misplaced declaration of an exception variable
     catch (Context context)
     {
         Log.e("nfxpref", "Failed to get preferences!", context);
         return i;
     }
     return j;
 }
Пример #7
0
 public static float getFloatPref(Context context, String s, float f)
 {
     if (!validate(context, s))
     {
         return f;
     }
     float f1;
     try
     {
         f1 = context.getSharedPreferences("nfxpref", 0).getFloat(s, f);
     }
     // Misplaced declaration of an exception variable
     catch (Context context)
     {
         Log.e("nfxpref", "Failed to get preferences!", context);
         return f;
     }
     return f1;
 }
Пример #8
0
 public static boolean getBooleanPref(Context context, String s, boolean flag)
 {
     if (!validate(context, s))
     {
         return flag;
     }
     boolean flag1;
     try
     {
         flag1 = context.getSharedPreferences("nfxpref", 0).getBoolean(s, flag);
     }
     // Misplaced declaration of an exception variable
     catch (Context context)
     {
         Log.e("nfxpref", "Failed to get preferences!", context);
         return flag;
     }
     return flag1;
 }
Пример #9
0
 public static long getLongPref(Context context, String s, long l)
 {
     if (!validate(context, s))
     {
         return l;
     }
     long l1;
     try
     {
         l1 = context.getSharedPreferences("nfxpref", 0).getLong(s, l);
     }
     // Misplaced declaration of an exception variable
     catch (Context context)
     {
         Log.e("nfxpref", "Failed to get preferences!", context);
         return l;
     }
     return l1;
 }