package com.baidu.mobads.sdk.internal; import android.content.SharedPreferences; import android.os.Build; import android.os.Handler; import com.baidu.mobads.sdk.internal.bf; /* access modifiers changed from: package-private */ public class bn extends h { final /* synthetic */ bf.c b; final /* synthetic */ Handler c; final /* synthetic */ bf d; bn(bf bfVar, bf.c cVar, Handler handler) { this.d = bfVar; this.b = cVar; this.c = handler; } /* access modifiers changed from: protected */ @Override // com.baidu.mobads.sdk.internal.h public Object i() { try { synchronized (bf.class) { this.d.b((bf) this.b, (bf.c) this.c); } try { SharedPreferences.Editor edit = this.d.m().edit(); edit.putString(bf.d, this.d.a()); if (Build.VERSION.SDK_INT >= 9) { edit.apply(); return null; } edit.commit(); return null; } catch (Throwable th) { this.d.z.a(bf.a, th); return null; } } catch (Throwable th2) { try { SharedPreferences.Editor edit2 = this.d.m().edit(); edit2.putString(bf.d, this.d.a()); if (Build.VERSION.SDK_INT >= 9) { edit2.apply(); } else { edit2.commit(); } } catch (Throwable th3) { this.d.z.a(bf.a, th3); } throw th2; } } }