summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin Yun <min.yun@lge.com>2022-09-07 17:04:57 +0900
committerMin Yun <min.yun@lge.com>2022-09-07 17:04:57 +0900
commited06223d6373d1980a6e8cfce8d38e0b6805cf29 (patch)
treeacaa56b34999a6632aadefd51c2ce5066d548560
parentcdbb4f0c34d189146f681481973e8e7ab95ceeae (diff)
downloadCalendar-ed06223d6373d1980a6e8cfce8d38e0b6805cf29.tar.gz
Remove wrong class cast
- In landscape mode, calendar is crashed. addRule() return void type, so "as RelativeLayout.LayoutParams" is crashed. Change-Id: I21d3129aeeb32b877c0b11591f6517b596303275
-rw-r--r--src/com/android/calendar/AllInOneActivity.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/calendar/AllInOneActivity.kt b/src/com/android/calendar/AllInOneActivity.kt
index 550bc548..b3b45fc1 100644
--- a/src/com/android/calendar/AllInOneActivity.kt
+++ b/src/com/android/calendar/AllInOneActivity.kt
@@ -293,7 +293,6 @@ class AllInOneActivity : Activity(), EventHandler, OnSharedPreferenceChangeListe
mControlsParams = LayoutParams(mControlsAnimateWidth, 0)
}
mControlsParams?.addRule(RelativeLayout.ALIGN_PARENT_RIGHT)
- as RelativeLayout.LayoutParams
} else {
// Make sure width is in between allowed min and max width values
mControlsAnimateWidth = Math.max(
@@ -1062,4 +1061,4 @@ class AllInOneActivity : Activity(), EventHandler, OnSharedPreferenceChangeListe
private var mIsMultipane = false
private var mIsTabletConfig = false
}
-} \ No newline at end of file
+}