private static void checkUrlIsSecure(String url) { try { URL parsed = new URL(url); if (!parsed.getProtocol().toLowerCase().equals("https") && !parsed.getHost().toLowerCase().endsWith("corp.google.com") && !parsed.getHost().startsWith("192.168.0")) { if (parsed.getHost().startsWith("127.0.0") && PlayUtils.isTestDevice()) { return; } throw new RuntimeException("Insecure URL: " + url); } } catch (MalformedURLException e) { PlayCommonLog.d("Cannot parse URL: " + url, new Object[0]); } }
protected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3, int paramInt4) { boolean bool; int i; int k; int n; int i16; label100: int i3; int i4; int i5; label171: int i7; int i8; int i9; if (ViewCompat.getLayoutDirection(this) == 0) { bool = true; i = getWidth(); int j = ViewCompat.getPaddingStart(this); k = ViewCompat.getPaddingEnd(this); int m = getHeight(); n = getPaddingTop(); int i1 = getPaddingBottom(); int i2 = m - n - i1; if (isLogoVisible()) { int i14 = this.mLogo.getMeasuredWidth(); int i15 = this.mLogo.getMeasuredHeight(); if (this.mContentFormat != 0) { break label352; } i16 = n + (i2 - i15) / 2; int i17 = PlayUtils.getViewLeftFromParentStart(i, i14, bool, j); this.mLogo.layout(i17, i16, i17 + i14, i16 + i15); } i3 = this.mContinueButtonFrame.getMeasuredWidth(); i4 = this.mContinueButtonFrame.getMeasuredHeight(); if (this.mContentFormat != 0) { break label359; } i5 = n + (i2 - i4) / 2; int i6 = PlayUtils.getViewLeftFromParentEnd(i, i3, bool, k); this.mContinueButtonFrame.layout(i6, i5, i6 + i3, i5 + i4); if (isSecondaryButtonVisible()) { i7 = this.mSecondaryButtonFrame.getMeasuredWidth(); i8 = this.mSecondaryButtonFrame.getMeasuredHeight(); if (this.mContentFormat != 0) { break label394; } i9 = n + (i2 - i8) / 2; } } for (int i10 = i3 + (i7 + this.mHorizontalItemGap);; i10 = i7) { int i11 = PlayUtils.getViewLeftFromParentEnd(i, i10, bool, k); View localView = this.mSecondaryButtonFrame; int i12 = i11 + i7; int i13 = i9 + i8; localView.layout(i11, i9, i12, i13); UiUtils.ensureMinimumTouchTargetSize(this.mContinueButton, this.mContinueArea, this.mOldContinueArea, this.mMinimumTouchTargetSize); UiUtils.ensureMinimumTouchTargetSize(this.mSecondaryButton, this.mSecondaryArea, this.mOldSecondaryArea, this.mMinimumTouchTargetSize); return; bool = false; break; label352: i16 = n; break label100; label359: if (this.mContentFormat == 1) { i5 = n + this.mLogo.getMeasuredHeight() + this.mVerticalItemGap; break label171; } i5 = n; break label171; label394: i9 = i5 + i4 + this.mVerticalItemGap; } }