Skip to content

Commit cbb16c7

Browse files
committed
updating the widget config activity
1 parent 31e9c2d commit cbb16c7

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class WidgetConfigureActivity : SimpleActivity() {
7373
override fun onResume() {
7474
super.onResume()
7575
text_note_view.setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
76-
setupToolbar(config_toolbar)
7776
}
7877

7978
private fun initVariables() {
@@ -87,6 +86,10 @@ class WidgetConfigureActivity : SimpleActivity() {
8786
mShowTitle = extras?.getBoolean(CUSTOMIZED_WIDGET_SHOW_TITLE) ?: false
8887
}
8988

89+
if (mTextColor == resources.getColor(R.color.default_widget_text_color) && config.isUsingSystemTheme) {
90+
mTextColor = resources.getColor(R.color.you_primary_color, theme)
91+
}
92+
9093
mBgAlpha = Color.alpha(mBgColor) / 255.toFloat()
9194

9295
mBgColorWithoutTransparency = Color.rgb(Color.red(mBgColor), Color.green(mBgColor), Color.blue(mBgColor))

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@
55
android:layout_width="match_parent"
66
android:layout_height="match_parent">
77

8-
<com.google.android.material.appbar.AppBarLayout
9-
android:id="@+id/config_app_bar_layout"
10-
android:layout_width="match_parent"
11-
android:layout_height="wrap_content">
12-
13-
<com.google.android.material.appbar.MaterialToolbar
14-
android:id="@+id/config_toolbar"
15-
android:layout_width="match_parent"
16-
android:layout_height="?attr/actionBarSize"
17-
android:background="@color/color_primary"
18-
app:title="@string/app_launcher_name"
19-
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
20-
21-
</com.google.android.material.appbar.AppBarLayout>
22-
238
<RelativeLayout
249
android:id="@+id/config_relative"
2510
android:layout_width="match_parent"

0 commit comments

Comments
 (0)