Merge branch 'release/1.0.16'
This commit is contained in:
commit
391ddf1925
|
@ -1,3 +1,9 @@
|
||||||
|
Changes in Element 1.0.16 (2020-02-04)
|
||||||
|
===================================================
|
||||||
|
|
||||||
|
Bugfix 🐛:
|
||||||
|
- Fix crash on API < 30 and light theme (#2774)
|
||||||
|
|
||||||
Changes in Element 1.0.15 (2020-02-03)
|
Changes in Element 1.0.15 (2020-02-03)
|
||||||
===================================================
|
===================================================
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Main changes in this version: Social Login support.
|
||||||
|
Full changelog: https://github.com/vector-im/element-android/releases/tag/v1.0.15 and https://github.com/vector-im/element-android/releases/tag/v1.0.16
|
|
@ -13,7 +13,7 @@ kapt {
|
||||||
// Note: 2 digits max for each value
|
// Note: 2 digits max for each value
|
||||||
ext.versionMajor = 1
|
ext.versionMajor = 1
|
||||||
ext.versionMinor = 0
|
ext.versionMinor = 0
|
||||||
ext.versionPatch = 15
|
ext.versionPatch = 16
|
||||||
|
|
||||||
static def getGitTimestamp() {
|
static def getGitTimestamp() {
|
||||||
def cmd = 'git show -s --format=%ct'
|
def cmd = 'git show -s --format=%ct'
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
*/
|
*/
|
||||||
package im.vector.app.features.popup
|
package im.vector.app.features.popup
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
|
@ -158,28 +157,38 @@ class PopupAlertManager @Inject constructor(private val avatarRenderer: Lazy<Ava
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("InlinedApi")
|
|
||||||
private fun clearLightStatusBar() {
|
private fun clearLightStatusBar() {
|
||||||
weakCurrentActivity?.get()
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
?.takeIf { Build.VERSION.SDK_INT >= Build.VERSION_CODES.M }
|
weakCurrentActivity?.get()
|
||||||
// Do not change anything on Dark themes
|
// Do not change anything on Dark themes
|
||||||
?.takeIf { ThemeUtils.isLightTheme(it) }
|
?.takeIf { ThemeUtils.isLightTheme(it) }
|
||||||
?.let { it.window?.decorView }
|
?.window?.decorView
|
||||||
?.let { view ->
|
?.let { view ->
|
||||||
view.windowInsetsController?.setSystemBarsAppearance(0, APPEARANCE_LIGHT_STATUS_BARS)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||||
}
|
view.windowInsetsController?.setSystemBarsAppearance(0, APPEARANCE_LIGHT_STATUS_BARS)
|
||||||
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
view.systemUiVisibility = view.systemUiVisibility and View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.inv()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("InlinedApi")
|
|
||||||
private fun setLightStatusBar() {
|
private fun setLightStatusBar() {
|
||||||
weakCurrentActivity?.get()
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
?.takeIf { Build.VERSION.SDK_INT >= Build.VERSION_CODES.M }
|
weakCurrentActivity?.get()
|
||||||
// Do not change anything on Dark themes
|
// Do not change anything on Dark themes
|
||||||
?.takeIf { ThemeUtils.isLightTheme(it) }
|
?.takeIf { ThemeUtils.isLightTheme(it) }
|
||||||
?.let { it.window?.decorView }
|
?.window?.decorView
|
||||||
?.let { view ->
|
?.let { view ->
|
||||||
view.windowInsetsController?.setSystemBarsAppearance(APPEARANCE_LIGHT_STATUS_BARS, APPEARANCE_LIGHT_STATUS_BARS)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||||
}
|
view.windowInsetsController?.setSystemBarsAppearance(APPEARANCE_LIGHT_STATUS_BARS, APPEARANCE_LIGHT_STATUS_BARS)
|
||||||
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
view.systemUiVisibility = view.systemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showAlert(alert: VectorAlert, activity: Activity, animate: Boolean = true) {
|
private fun showAlert(alert: VectorAlert, activity: Activity, animate: Boolean = true) {
|
||||||
|
|
Loading…
Reference in New Issue