Skip to content
This repository was archived by the owner on Sep 10, 2020. It is now read-only.

Enable two static shortcuts: record and overlay.#139

Open
JakeWharton wants to merge 4 commits intomasterfrom
SimonMarquis-feature/static_shortcuts
Open

Enable two static shortcuts: record and overlay.#139
JakeWharton wants to merge 4 commits intomasterfrom
SimonMarquis-feature/static_shortcuts

Conversation

@JakeWharton
Copy link
Owner

Closes #135. Closes #132.

@JakeWharton JakeWharton force-pushed the SimonMarquis-feature/static_shortcuts branch from 9f80498 to 740fb76 Compare December 8, 2016 05:56
</shortcut>
<shortcut
android:enabled="true"
android:icon="@drawable/ic_shortcut_record"
Copy link
Contributor

@SimonMarquis SimonMarquis Dec 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You renamed this file to ic_shortcut_record_48dp (hence build fail)

>
<shortcut
android:enabled="true"
android:icon="@drawable/ic_shortcut_overlay"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You renamed this file to ic_shortcut_overlay_48dp (hence build fail)

Copy link
Contributor

@SimonMarquis SimonMarquis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You renamed these two files that are referenced in shortcut.xml

  • ic_shortcut_overlay_48dp
  • ic_shortcut_record_48dp

@JakeWharton
Copy link
Owner Author

This needs debug/ and release/ variants since the targetPackage will be wrong for one of the two and the use of @string isn't supported.

…_shortcuts

Continues #139 Enable two static shortcuts: record and overlay.
@SimonMarquis
Copy link
Contributor

If you really want pixel perfect images for these two shortcut, using Roman Nurik's awsome Android Asset Studio:

Copy link
Contributor

@NightlyNexus NightlyNexus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any interest in this? Or, would you be interested in reviewing an updated PR?
understandable if neither.

android:theme="@style/Theme.Telecine.Transparent"
android:excludeFromRecents="true"
android:taskAffinity=""
android:enabled="@bool/widget_shortcut_enabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

String ACTION_QUICK_TILE_LAUNCHED = "Quick Tile Launched";
String ACTION_QUICK_TILE_REMOVED = "Quick Tile Removed";
String ACTION_STATIC_SHORTCUT_RECORD = "Static Shortcut Record";
String ACTION_STATIC_SHORTCUT_OVERLAY = "Static Shortcut Overlay";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are unused...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants