- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33
MOB-11663-InApp-Calculations #949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Needs reduction in code. Lot of repition. Heavy review and testing needed. Committing as inapps are looking stable and are sticking with the layout with back to back phone rotations when inapp performance would fail usually
| private String messageId; | ||
|  | ||
| // Resize debouncing fields | ||
| private Handler resizeHandler = new Handler(); | 
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Handler.Handler
| lastOrientation = currentOrientation; | ||
|  | ||
| // Use longer delay for orientation changes to allow layout to stabilize | ||
| final Handler handler = new Handler(); | 
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Handler.Handler
2cc8a75    to
    8e15c0a      
    Compare
  
            
          
                iterableapi/src/androidTest/java/com/iterable/iterableapi/IterableApiResponseTest.java
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial pass done
| if (loaded && webView != null) { | ||
| // Only trigger on significant orientation changes (90 degree increments) | ||
| int currentOrientation = ((orientation + 45) / 90) * 90; | ||
| if (currentOrientation != lastOrientation && lastOrientation != -1) { | ||
| lastOrientation = currentOrientation; | ||
|  | ||
| // Use longer delay for orientation changes to allow layout to stabilize | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for resize script to be called only limted number of times. This method when implemented, felt it was only called when landscape to portrait rotation was made. Hence explicit conditioning is required.
        
          
                iterableapi/src/main/java/com/iterable/iterableapi/IterableInAppFragmentHTMLNotification.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                iterableapi/src/main/java/com/iterable/iterableapi/IterableInAppFragmentHTMLNotification.java
          
            Show resolved
            Hide resolved
        
      And removed unnecessary logging
54b0276    to
    e85d78a      
    Compare
  
    
Needs reduction in code. Lot of repition. Heavy review and testing needed. Committing as inapps are looking stable and are sticking with the layout with back to back phone rotations when inapp performance would fail usually
🔹 Jira Ticket(s) if any
✏️ Description