private void a() { String str1 = this.j.getText().toString(); this.s = str1; String str2 = this.t; String str3 = this.s; if (str2.equalsIgnoreCase(str3)) { String str4 = this.v; String str5 = this.u; if (str4.equals(str5)); } else { int m = this.h; int i1 = g; if (m == i1) { int i2 = this.w.c(); long l1 = this.w.d(); if (TextUtils.isEmpty(this.s)) { hb.b(a, "分类名称不能为空"); return; } int i3 = this.i; int i4 = SettingFirstLevelCategoryActivity.d; if (i3 == i4) { h localh1 = this.q; String str6 = this.s; if (localh1.b(str6, i2, l1)) { String str7 = this.t; String str8 = this.s; if (!str7.equalsIgnoreCase(str8)) { hb.b(a, "对不起,分类名称已经存在!"); return; } } } int i5 = this.i; int i6 = SettingFirstLevelCategoryActivity.c; if (i5 == i6) { h localh2 = this.q; String str9 = this.s; if (localh2.c(str9, i2, l1)) { String str10 = this.t; String str11 = this.s; if (!str10.equalsIgnoreCase(str11)) { hb.b(a, "对不起,分类名称已经存在!"); return; } } } h localh3 = this.q; long l2 = this.r; String str12 = this.s; String str13 = this.u; boolean bool = localh3.a(l2, str12, str13); } } hb.b(a, "保存成功."); finish(); }
protected void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); setContentView(2130903094); a = this; EditText localEditText1 = (EditText)findViewById(2131230754); this.j = localEditText1; Button localButton1 = (Button)findViewById(2131230808); this.k = localButton1; Button localButton2 = (Button)findViewById(2131230807); this.l = localButton2; ImageView localImageView1 = (ImageView)findViewById(2131230911); this.n = localImageView1; TextView localTextView = (TextView)findViewById(2131230730); this.o = localTextView; CategoryIconRadioGroup localCategoryIconRadioGroup = (CategoryIconRadioGroup)findViewById(2131231072); this.p = localCategoryIconRadioGroup; this.k.setOnClickListener(this); this.l.setOnClickListener(this); this.p.setOnCheckedChangeListener(this); Intent localIntent1 = getIntent(); String str1 = b; int m = e; int i1 = localIntent1.getIntExtra(str1, m); this.h = i1; Intent localIntent2 = getIntent(); String str2 = c; long l1 = d; long l2 = localIntent2.getLongExtra(str2, l1); this.r = l2; int i2 = this.h; int i3 = e; if (i2 != i3) { long l3 = this.r; long l4 = d; if (l3 != l4); } else { finish(); } Intent localIntent3 = getIntent(); String str3 = SettingFirstLevelCategoryActivity.a; int i4 = SettingFirstLevelCategoryActivity.b; int i5 = localIntent3.getIntExtra(str3, i4); this.i = i5; h localh = this.q; long l5 = this.r; CategoryVo localCategoryVo = localh.c(l5); this.w = localCategoryVo; String str4 = this.w.b(); this.s = str4; ImageView localImageView2 = this.n; Drawable localDrawable = b(); localImageView2.setImageDrawable(localDrawable); this.o.setText("编辑分类"); this.k.setText("保存"); c(); String str5 = this.s; this.t = str5; EditText localEditText2 = this.j; String str6 = this.s; localEditText2.setText(str6); }
private void b() { String str = this.o.getText().toString(); int m = 0; int i1 = this.r; int i2 = c; boolean bool; if (i1 == i2) { h localh1 = this.t; int i3 = this.q.c() + 1; long l1 = this.q.a(); bool = localh1.c(str, i3, l1); } while (TextUtils.isEmpty(str)) { int i4 = this.r; int i5 = e; if (i4 == i5) { hb.b(g, "项目名不能为空."); return; int i6 = this.r; int i7 = d; if (i6 != i7) continue; h localh2 = this.t; int i8 = this.q.c() + 1; long l2 = this.q.a(); bool = localh2.b(str, i8, l2); continue; } hb.b(g, "类别名不能为空."); return; } if (bool) { int i9 = this.r; int i10 = e; if (i9 == i10) { hb.b(g, "对不起,该项目已经存在."); return; } hb.b(g, "对不起,该分类已经存在."); return; } int i11 = this.r; int i12 = c; if (i11 == i12) long l3 = this.t.b(str); while (true) { this.o.setText(""); hb.b(g, "保存成功"); return; int i13 = this.r; int i14 = d; if (i13 != i14) continue; long l4 = this.t.a(str); } }