mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2026-01-25 14:47:05 +00:00
Fixed variable usage.
This commit is contained in:
parent
bfb4a7dad3
commit
2e56063abe
@ -133,12 +133,12 @@ public class AppHelper {
|
||||
public static String getDeviceName() {
|
||||
String brand = Build.BRAND;
|
||||
String model = Build.MODEL;
|
||||
if (model.startsWith(manufacturer)) {
|
||||
if (model.startsWith(brand)) {
|
||||
return InputHelper.capitalizeFirstLetter(model);
|
||||
} else if (isEmulator()){
|
||||
return "Android Emulator";
|
||||
}
|
||||
return InputHelper.capitalizeFirstLetter(manufacturer) + " " + model;
|
||||
return InputHelper.capitalizeFirstLetter(brand) + " " + model;
|
||||
}
|
||||
|
||||
private static boolean isEmulator() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user