Skip to content

Commit baadf29

Browse files
committed
-fixed, text gets cut on widget #284
1 parent 4d220d4 commit baadf29

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44
apply plugin: 'kotlin-kapt'
55

6-
def keystorePropertiesFile = rootProject.file("keystore.properties")
7-
def keystoreProperties = new Properties()
8-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
6+
//def keystorePropertiesFile = rootProject.file("keystore.properties")
7+
//def keystoreProperties = new Properties()
8+
//keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
99

1010
android {
1111
compileSdkVersion 28
@@ -21,23 +21,23 @@ android {
2121
}
2222

2323
signingConfigs {
24-
release {
24+
/* release {
2525
keyAlias keystoreProperties['keyAlias']
2626
keyPassword keystoreProperties['keyPassword']
2727
storeFile file(keystoreProperties['storeFile'])
2828
storePassword keystoreProperties['storePassword']
29-
}
29+
}*/
3030
}
3131

3232
buildTypes {
3333
debug {
3434
applicationIdSuffix ".debug"
3535
}
36-
release {
36+
/*release {
3737
minifyEnabled true
3838
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3939
signingConfig signingConfigs.release
40-
}
40+
}*/
4141
}
4242

4343
sourceSets {

app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MyWidgetProvider : AppWidgetProvider() {
2929
Thread {
3030
context.widgetsDB.getWidgets().forEach {
3131
val views = RemoteViews(context.packageName, R.layout.widget)
32-
views.setBackgroundColor(R.id.notes_widget_holder, context.config.widgetBgColor)
32+
views.setBackgroundColor(R.id.frame_widget, context.config.widgetBgColor)
3333
setupAppOpenIntent(context, views, R.id.notes_widget_holder, it)
3434

3535
Intent(context, WidgetService::class.java).apply {
@@ -57,4 +57,4 @@ class MyWidgetProvider : AppWidgetProvider() {
5757
}
5858
}.start()
5959
}
60-
}
60+
}

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<RelativeLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:id="@+id/notes_widget_holder"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/frame_widget"
54
android:layout_width="match_parent"
6-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:orientation="vertical">
77

88
<ListView
99
android:id="@+id/notes_widget_listview"
1010
android:layout_width="match_parent"
11-
android:layout_height="wrap_content"
11+
android:layout_height="match_parent"
1212
android:divider="@null"/>
1313

14-
</RelativeLayout>
14+
<RelativeLayout
15+
android:id="@+id/notes_widget_holder"
16+
android:layout_width="match_parent"
17+
android:layout_height="match_parent">
18+
19+
</RelativeLayout>
20+
</FrameLayout>

0 commit comments

Comments
 (0)