| | |
| | | m_MainContainer = (RelativeLayout) findViewById(R.id.main_container); |
| | | |
| | | String _brand = NotchPhoneUtil.getDeviceBrand(); |
| | | if (_brand.indexOf("vivo") > 0) |
| | | if (_brand.indexOf("vivo") >= 0) |
| | | { |
| | | isNotch = NotchPhoneUtil.HasNotchVivo(MainActivity.this); |
| | | mType = 1; |
| | | } |
| | | else if (_brand.indexOf("HUAWEI") > 0) |
| | | else if (_brand.indexOf("HUAWEI") >= 0) |
| | | { |
| | | isNotch = NotchPhoneUtil.HasNotchVivo(MainActivity.this); |
| | | mType = 2; |
| | | } |
| | | else if (_brand.indexOf("OPPO") > 0) |
| | | else if (_brand.indexOf("OPPO") >= 0) |
| | | { |
| | | isNotch = NotchPhoneUtil.HasNotchVivo(MainActivity.this); |
| | | mType = 3; |
| | | } |
| | | else if (_brand.indexOf("Xiaomi") > 0) |
| | | else if (_brand.indexOf("Xiaomi") >= 0) |
| | | { |
| | | isNotch = NotchPhoneUtil.HasNotchVivo(MainActivity.this); |
| | | mType = 4; |