.class final Landroidx/window/layout/SidecarCompat$DistinctElementCallback; .super Ljava/lang/Object; .source "SidecarCompat.kt" # interfaces .implements Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/window/layout/SidecarCompat; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1a name = "DistinctElementCallback" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0003\u0008\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0001\u00a2\u0006\u0002\u0010\u0003J\u0018\u0010\n\u001a\u00020\u000b2\u0006\u0010\u000c\u001a\u00020\u00062\u0006\u0010\r\u001a\u00020\u0007H\u0016R\u001c\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u00058\u0002X\u0083\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0001X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0008\u001a\u00020\tX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000e" } d2 = { "Landroidx/window/layout/SidecarCompat$DistinctElementCallback;", "Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface;", "callbackInterface", "(Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface;)V", "activityWindowLayoutInfo", "Ljava/util/WeakHashMap;", "Landroid/app/Activity;", "Landroidx/window/layout/WindowLayoutInfo;", "lock", "Ljava/util/concurrent/locks/ReentrantLock;", "onWindowLayoutChanged", "", "activity", "newLayout", "window_release" } k = 0x1 mv = { 0x1, 0x6, 0x0 } xi = 0x30 .end annotation # instance fields .field private final activityWindowLayoutInfo:Ljava/util/WeakHashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/WeakHashMap<", "Landroid/app/Activity;", "Landroidx/window/layout/WindowLayoutInfo;", ">;" } .end annotation .end field .field private final callbackInterface:Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface; .field private final lock:Ljava/util/concurrent/locks/ReentrantLock; # direct methods .method public constructor (Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface;)V .locals 1 const-string v0, "callbackInterface" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 375 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->callbackInterface:Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface; .line 378 new-instance p1, Ljava/util/concurrent/locks/ReentrantLock; invoke-direct {p1}, Ljava/util/concurrent/locks/ReentrantLock;->()V iput-object p1, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->lock:Ljava/util/concurrent/locks/ReentrantLock; .line 385 new-instance p1, Ljava/util/WeakHashMap; invoke-direct {p1}, Ljava/util/WeakHashMap;->()V iput-object p1, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->activityWindowLayoutInfo:Ljava/util/WeakHashMap; return-void .end method # virtual methods .method public onWindowLayoutChanged(Landroid/app/Activity;Landroidx/window/layout/WindowLayoutInfo;)V .locals 2 const-string v0, "activity" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "newLayout" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->lock:Ljava/util/concurrent/locks/ReentrantLock; .line 390 check-cast v0, Ljava/util/concurrent/locks/Lock; invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V :try_start_0 iget-object v1, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->activityWindowLayoutInfo:Ljava/util/WeakHashMap; .line 391 invoke-virtual {v1, p1}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/window/layout/WindowLayoutInfo; .line 392 invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v1, :cond_0 .line 393 invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V return-void :cond_0 :try_start_1 iget-object v1, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->activityWindowLayoutInfo:Ljava/util/WeakHashMap; .line 395 invoke-virtual {v1, p1, p2}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/window/layout/WindowLayoutInfo; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 390 invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V iget-object p0, p0, Landroidx/window/layout/SidecarCompat$DistinctElementCallback;->callbackInterface:Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface; .line 397 invoke-interface {p0, p1, p2}, Landroidx/window/layout/ExtensionInterfaceCompat$ExtensionCallbackInterface;->onWindowLayoutChanged(Landroid/app/Activity;Landroidx/window/layout/WindowLayoutInfo;)V return-void :catchall_0 move-exception p0 .line 390 invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V throw p0 .end method