Skip to content

Commit

Permalink
feat: Renamed package and updated default values
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGhostlyOrb committed Jun 29, 2023
1 parent a05e0f8 commit 2fc94bd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions countdown/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Countdown">
android:theme="@style/Theme.Countdown"
android:banner="@mipmap/ic_launcher_round">

<activity
android:name=".MainActivity"
Expand Down Expand Up @@ -52,7 +53,7 @@

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/app_widget_list_rv" />
android:resource="@xml/countdown_widget" />
</receiver>
</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CountdownWidget : AppWidgetProvider() {
// If value is 1, change to singular
val daysString = if (daysPositive == 1L) "day" else "days"
val hoursString = if (hoursPositive == 1L) "hour" else "hours"
val targetPlace = prefs.getString(PREF_TARGET_PLACE + appWidgetId, "America")
val targetPlace = prefs.getString(PREF_TARGET_PLACE + appWidgetId, "My Trip")

// Construct the RemoteViews object
val views = RemoteViews(context.packageName, R.layout.countdown)
Expand Down
4 changes: 2 additions & 2 deletions countdown/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<string name="button">Button</string>
<string name="updateTime">UPDATE TIME</string>
<string name="updateTitle">UPDATE PLACE</string>
<string name="example">Place: 10 Days 5 Minutes</string>
<string name="timestamp">Enter a UNIX Timestamp</string>
<string name="example">My Trip: 10 Days 5 Hours</string>
<string name="timestamp">Enter a UNIX Timestamp (milliseconds)</string>
<string name="place">Enter a Place/Event</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:previewLayout="@layout/countdown"
android:resizeMode="horizontal|vertical"
android:targetCellWidth="3"
android:targetCellHeight="2"
android:targetCellHeight="1"
android:updatePeriodMillis="1800000"
android:widgetCategory="home_screen"
android:widgetFeatures="reconfigurable|configuration_optional" />

0 comments on commit 2fc94bd

Please sign in to comment.