File tree 3 files changed +9
-12
lines changed
src/main/java/com/andretietz/retroauth
3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
# Release Settings
2
- kotlinVersion =1.2.61
2
+ kotlinVersion =1.2.71
3
3
okhttpVersion =3.10.0
4
4
retrofitVersion =2.3.0
5
5
6
6
GROUP =com.andretietz.retroauth
7
- VERSION_NAME =3.0.0-beta7 -SNAPSHOT
7
+ VERSION_NAME =3.0.0-beta8 -SNAPSHOT
8
8
POM_DESCRIPTION =A library build on top of retrofit, for simple handling of authenticated requests.
9
9
POM_URL =https://github.com/andretietz/retroauth
10
10
POM_SCM_URL =https://github.com/andretietz/retroauth
Original file line number Diff line number Diff line change 3
3
## Dependencies
4
4
* [ Retrofit] ( https://github.com/square/retrofit ) 2.3.0 (transitive from retroauth-core)
5
5
* appcompat-v7 23.0.0
6
- * kotlin-stdlib 1.2.30
6
+ * kotlin-stdlib 1.2.71
7
7
8
8
Method-Count: 348
9
9
Field-Count: 77
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import android.accounts.AccountManagerCallback
22
22
import android.accounts.AccountManagerFuture
23
23
import android.app.AlertDialog
24
24
import android.app.Application
25
- import android.app.Dialog
26
25
import android.content.Context
27
26
import android.os.Build
28
27
import android.os.Bundle
@@ -189,14 +188,12 @@ class AndroidOwnerManager constructor(
189
188
val dialog = builder.create()
190
189
dialog.setOnDismissListener { countDownLatch.countDown() }
191
190
dialog.show()
192
- keep(dialog)
193
- }
194
-
195
- private fun keep (dialog : Dialog ) {
196
- dialog.window.attributes = WindowManager .LayoutParams ().apply {
197
- copyFrom(dialog.window.attributes)
198
- width = WindowManager .LayoutParams .WRAP_CONTENT
199
- height = WindowManager .LayoutParams .WRAP_CONTENT
191
+ dialog.window?.let { window ->
192
+ window.attributes = WindowManager .LayoutParams ().apply {
193
+ copyFrom(window.attributes)
194
+ width = WindowManager .LayoutParams .WRAP_CONTENT
195
+ height = WindowManager .LayoutParams .WRAP_CONTENT
196
+ }
200
197
}
201
198
}
202
199
}
You can’t perform that action at this time.
0 commit comments