Skip to content

Commit

Permalink
Use OpenTileSettingsActivity for template tile
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl committed Oct 27, 2023
1 parent 7ef7a61 commit bee0a79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
6 changes: 0 additions & 6 deletions wear/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="com.google.android.clockwork.tiles.category.PROVIDER_CONFIG" />
</intent-filter>
</activity>

<activity
android:name=".tiles.OpenTemplateTileSettingsActivity"
android:exported="true"
android:excludeFromRecents="true">
<intent-filter>
<action android:name="ConfigTemplateTile" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ class OpenTileSettingsActivity : AppCompatActivity() {
tileId = it
)
}
"ConfigTemplateTile" -> {
lifecycleScope.launch {
wearPrefsRepository.getTemplateTileAndSaveTileId(tileId)
}
HomeActivity.getTemplateTileSettingsIntent(
context = this,
tileId = it
)
}
else -> null
}

Expand Down

0 comments on commit bee0a79

Please sign in to comment.