Skip to content

Commit 6a308cd

Browse files
committed
updating the Bright display button
1 parent 07887cf commit 6a308cd

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ android {
5555
}
5656

5757
dependencies {
58-
implementation 'com.github.SimpleMobileTools:Simple-Commons:c615eda325'
58+
implementation 'com.github.SimpleMobileTools:Simple-Commons:820461691b'
5959
implementation 'org.greenrobot:eventbus:3.2.0'
6060
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
6161
}

app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ import kotlinx.android.synthetic.main.activity_bright_display.*
1313

1414
class BrightDisplayActivity : SimpleActivity() {
1515
override fun onCreate(savedInstanceState: Bundle?) {
16-
window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or
16+
window.addFlags(
17+
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or
1718
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED or
1819
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON or
19-
WindowManager.LayoutParams.FLAG_FULLSCREEN)
20+
WindowManager.LayoutParams.FLAG_FULLSCREEN
21+
)
2022

2123
useDynamicTheme = false
2224
super.onCreate(savedInstanceState)

app/src/main/res/layout/activity_bright_display.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
android:layout_height="match_parent"
1111
android:background="@android:color/white" />
1212

13-
<TextView
13+
<android.widget.TextView
1414
android:id="@+id/bright_display_change_color"
15+
style="@style/StrokeButtonStyle"
1516
android:layout_width="wrap_content"
1617
android:layout_height="wrap_content"
1718
android:layout_centerInParent="true"
1819
android:alpha="0.5"
19-
android:background="@drawable/button_background"
20-
android:padding="@dimen/activity_margin"
21-
android:text="@string/change_color"
22-
android:textSize="@dimen/big_text_size" />
20+
android:text="@string/change_color" />
2321

2422
</RelativeLayout>

app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22

3-
<style name="AppTheme" parent="AppTheme.Base"/>
3+
<style name="AppTheme" parent="AppTheme.Base" />
44

55
<style name="FullScreenTheme" parent="AppTheme">
66
<item name="android:windowContentOverlay">@null</item>

0 commit comments

Comments
 (0)