96 lines
3.0 KiB
Java
96 lines
3.0 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.text.NumberFormat;
|
|
import java.util.Locale;
|
|
import o.C15715hv;
|
|
|
|
/* renamed from: o.nS, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16318nS extends C16157lj {
|
|
@InterfaceC13391fZD
|
|
public C16318nS(Resources resources, SharedPreferences sharedPreferences) {
|
|
super(resources, sharedPreferences);
|
|
}
|
|
|
|
public final C0477Hl e(int i, boolean z, C0471Hh c0471Hh) {
|
|
String string;
|
|
int i2;
|
|
int i3;
|
|
C0477Hl c0477Hl = new C0477Hl();
|
|
C0463Hc c0463Hc = c0471Hh.n;
|
|
c0477Hl.g = c0463Hc.f;
|
|
c0477Hl.q = c0463Hc.c;
|
|
c0477Hl.t = c0463Hc.q;
|
|
c0477Hl.r = c0463Hc.m;
|
|
c0477Hl.w = c0463Hc.k;
|
|
c0477Hl.f8202o = c0463Hc.f8197o;
|
|
c0477Hl.b = c0471Hh.b;
|
|
c0477Hl.c = c0471Hh.d;
|
|
c0477Hl.s = c0471Hh.i;
|
|
c0477Hl.l = c0471Hh.f;
|
|
c0477Hl.n = i;
|
|
c0477Hl.v = c0471Hh.l;
|
|
c0477Hl.k = z;
|
|
c0477Hl.x = c0471Hh.k;
|
|
c0477Hl.u = c0471Hh.s;
|
|
if (c0471Hh.f) {
|
|
string = this.e.getString(C15715hv.tOB.product_item_description_opr, c0463Hc.f8197o);
|
|
} else {
|
|
string = this.e.getString(C15715hv.tOB.product_item_description, c0463Hc.f8197o, Integer.valueOf(i));
|
|
}
|
|
c0477Hl.h = string;
|
|
c0477Hl.y = c0463Hc.u;
|
|
if (z) {
|
|
i3 = c0463Hc.q.intValue() * i;
|
|
i2 = 0;
|
|
} else {
|
|
int intValue = c0463Hc.c.intValue();
|
|
int intValue2 = c0463Hc.k.intValue() * i;
|
|
i2 = i * intValue;
|
|
i3 = intValue2;
|
|
}
|
|
c0477Hl.j = NumberFormat.getInstance(Locale.getDefault()).format(i3);
|
|
c0477Hl.i = NumberFormat.getInstance(Locale.getDefault()).format(i2);
|
|
c0477Hl.d = c0471Hh.e;
|
|
return c0477Hl;
|
|
}
|
|
|
|
public static C0477Hl e(C0498Hz c0498Hz, C0463Hc c0463Hc, boolean z, String str) {
|
|
int intValue;
|
|
int intValue2;
|
|
C0477Hl c0477Hl = new C0477Hl();
|
|
c0477Hl.b = c0498Hz.c;
|
|
c0477Hl.c = c0498Hz.a;
|
|
c0477Hl.s = c0498Hz.d;
|
|
c0477Hl.r = c0463Hc.m;
|
|
c0477Hl.h = c0463Hc.p;
|
|
c0477Hl.g = c0463Hc.f;
|
|
c0477Hl.q = c0463Hc.c;
|
|
c0477Hl.t = c0463Hc.q;
|
|
c0477Hl.w = c0463Hc.k;
|
|
c0477Hl.f8202o = c0463Hc.f8197o;
|
|
c0477Hl.n = 1;
|
|
c0477Hl.f = str;
|
|
c0477Hl.m = true;
|
|
c0477Hl.k = z;
|
|
c0477Hl.x = c0498Hz.h;
|
|
c0477Hl.a = c0498Hz.g;
|
|
c0477Hl.e = c0498Hz.i;
|
|
c0477Hl.u = c0498Hz.m;
|
|
if (z) {
|
|
intValue2 = c0463Hc.q.intValue();
|
|
intValue = 0;
|
|
} else {
|
|
intValue = c0463Hc.c.intValue();
|
|
intValue2 = c0463Hc.k.intValue();
|
|
}
|
|
c0477Hl.j = NumberFormat.getInstance(Locale.getDefault()).format(intValue2);
|
|
c0477Hl.i = NumberFormat.getInstance(Locale.getDefault()).format(intValue);
|
|
c0477Hl.p = c0498Hz.k;
|
|
c0477Hl.d = c0498Hz.b;
|
|
return c0477Hl;
|
|
}
|
|
}
|