couple code style changes

This commit is contained in:
tibbi 2017-03-10 22:15:10 +01:00
parent 2f83d5d28f
commit 739e1c01a8
2 changed files with 3 additions and 4 deletions

View file

@ -100,9 +100,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
supportActionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.actionbar_gradient_background))
if (config.maxBrightness) {
var attributes = getWindow().getAttributes()
attributes.screenBrightness = 1F
getWindow().setAttributes(attributes)
val attributes = window.attributes
attributes.screenBrightness = 1f
window.attributes = attributes
}
}

View file

@ -149,7 +149,6 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_show_media_holder"
android:layout_width="match_parent"