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)) supportActionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.actionbar_gradient_background))
if (config.maxBrightness) { if (config.maxBrightness) {
var attributes = getWindow().getAttributes() val attributes = window.attributes
attributes.screenBrightness = 1F attributes.screenBrightness = 1f
getWindow().setAttributes(attributes) window.attributes = attributes
} }
} }

View file

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