Skip to content

Commit 6b6d980

Browse files
committed
Workaround for NullPointerException on preference.getKey() for a Preference, which doesn't have a key: I simply added keys
1 parent 1d1cb63 commit 6b6d980

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/calendar-widget/src/main/res/xml/preferences_feedback.xml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
22
<Preference
3+
android:key="feedbackGithub"
34
android:summary="@string/feedback_github_desc"
4-
android:title="@string/feedback_github_title">
5+
android:title="@string/feedback_github_title"
6+
android:persistent="false">
57
<intent
68
android:action="android.intent.action.VIEW"
79
android:data="https://github.com/plusonelabs/calendar-widget" />
810
</Preference>
911
<Preference
12+
android:key="feedbackPlayStore"
1013
android:summary="@string/feedback_play_store_desc"
11-
android:title="@string/feedback_play_store_title">
14+
android:title="@string/feedback_play_store_title"
15+
android:persistent="false">
1216
<intent
1317
android:action="android.intent.action.VIEW"
1418
android:data="https://play.google.com/store/apps/details?id=com.plusonelabs.calendar" />

0 commit comments

Comments
 (0)