-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #428 from Iterable/jay/MOB-3892-in-app-top
[MOB-3892] in-app top layout fix
- Loading branch information
Showing
6 changed files
with
68 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
iterableapi/src/main/java/com/iterable/iterableapi/IterableWebChromeClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.iterable.iterableapi; | ||
|
||
import android.webkit.WebChromeClient; | ||
import android.webkit.WebView; | ||
|
||
public class IterableWebChromeClient extends WebChromeClient { | ||
IterableWebView.HTMLNotificationCallbacks inAppHTMLNotification; | ||
|
||
IterableWebChromeClient(IterableWebView.HTMLNotificationCallbacks inAppHTMLNotification) { | ||
this.inAppHTMLNotification = inAppHTMLNotification; | ||
} | ||
|
||
@Override | ||
public void onProgressChanged(WebView view, int newProgress) { | ||
inAppHTMLNotification.runResizeScript(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters