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

Quick tile #114

Merged
merged 1 commit into from Jun 19, 2016
Merged

Quick tile #114

merged 1 commit into from Jun 19, 2016

Conversation

mattprecious
Copy link
Collaborator

@mattprecious mattprecious commented Jun 3, 2016

So can't merge this yet for obvious preview-related reasons. Also, as you're already aware, targeting SDK 23+ means storage and draw-over-apps permissions aren't granted automatically. Opening the PR now anyway so there's no duplicate efforts.

Closes #92.

import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;

public class TelecineTileService extends TileService {
Copy link
Owner

Choose a reason for hiding this comment

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

final

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ugh, where did my default class template go!

Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep.


<service
android:icon="@drawable/ic_videocam_white_24dp"
android:label="@string/app_name"
Copy link
Owner

Choose a reason for hiding this comment

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

This should probably be @string/launch_overlay to match the shortcut.

I'm also wondering if it would be beneficial to have a version of the launcher icon that can be used here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I was originally planning on using a variation of the launcher icon but you already had this one for notifications so I went with that. The shortcut just uses "Launch". Is the icon enough context to indicate it's Telecine?

Copy link
Owner

Choose a reason for hiding this comment

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

Maybe a new "Launch Telecine" string then

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Also found what might be a quick tiles bug. The system is caching the tile name for some period of time even after the app is updated. Have to remove and add it again.

@JakeWharton
Copy link
Owner

draw-over-apps permissions [isn't] granted automatically

This is only true of Android 6.0.0 but not 6.0.1+. I guess I'll need to design something for 6.0.0 where we tell you to go to Settings and enable it. Ugh.

@mattprecious
Copy link
Collaborator Author

Seems to be true again on N... This was crashing for me until I turned on the permission manually.

@JakeWharton
Copy link
Owner

Ah, yeah. The OS restriction is still there. The Play Store automatically grants the permission when you install through it.

@mattprecious
Copy link
Collaborator Author

Ah, right. Cool! One less issue to tackle.

@jaredsburrows
Copy link
Contributor

👍

@JakeWharton
Copy link
Owner

@mattprecious update to 24 proper at your convenience. let's get this shipped!

@mattprecious
Copy link
Collaborator Author

Done. Targeting 24 means we have to ask for permissions.

@JakeWharton
Copy link
Owner

I may have asked this before, but do we need to target 24 for this? Or is compile 24 all that's needed?

@jaredsburrows
Copy link
Contributor

Leave the target the same.
On Jun 15, 2016 1:19 PM, "Jake Wharton" notifications@github.com wrote:

I may have asked this before, but do we need to target 24 for this? Or is
compile 24 all that's needed?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#114 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABqMSFsc0T-wDLjrxuTlI7vndrAcJ24-ks5qMF5SgaJpZM4Itoyp
.

@mattprecious
Copy link
Collaborator Author

Wasn't needed. 22 works fine.

@jaredsburrows
Copy link
Contributor

Yes.
On Jun 15, 2016 1:25 PM, "Matthew Precious" notifications@github.com
wrote:

Wasn't needed. 22 works fine.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#114 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABqMSP7C2X2ME-slM4KsJoycFkbKriP2ks5qMF_GgaJpZM4Itoyp
.

@jaredsburrows
Copy link
Contributor

@mattprecious Your PR is still failing:

* What went wrong:
A problem occurred configuring project ':telecine'.
> failed to find target with hash string 'android-24' in: /usr/local/android-sdk

Update the TravisCI with this one:

language: android

jdk:
 - oraclejdk7
 - oraclejdk8

android:
  components:
    - tools
    - platform-tools
    - build-tools-24.0.0
    - android-24
    - extra-android-m2repository
    - extra-google-m2repository

script:
  - ./gradlew clean check -Dpre-dex=false

branches:
  except:
    - gh-pages

notifications:
  email: false

sudo: false

cache:
  directories:
    - $HOME/.gradle

@mattprecious
Copy link
Collaborator Author

Can't use JDK 7 anymore, apparently.

@mattprecious
Copy link
Collaborator Author

It's also yelling because the platform tools are too old. Is there a way to force travis to update?

@jaredsburrows
Copy link
Contributor

@JakeWharton has not responded to my PR here(#115) but my suggestion for this repo would be to "ignore" jdk7. See here:https://github.com/JakeWharton/Telecine/pull/115/files#diff-354f30a63fb0907d4ad57269548329e3R7.

@jaredsburrows
Copy link
Contributor

@mattprecious See here: The platforms tools are still in "preview" but there is a 24 RC1. The latest release is still 23.1. :(
screen shot 2016-06-15 at 4 21 25 pm

@JakeWharton
Copy link
Owner

No the latest is 24. You just can't install it from the standalone SDK
manager.

IDGAF about JDK 7. It's EOL anyway.

On Thu, Jun 16, 2016 at 11:59 AM Jared Burrows notifications@github.com
wrote:

@mattprecious https://github.com/mattprecious See here: The platforms
tools are still in "preview" but there is a 24 RC1. The latest release is
still 23.1. :(
[image: screen shot 2016-06-15 at 4 21 25 pm]
https://cloud.githubusercontent.com/assets/1739848/16123620/8e4888f8-33a0-11e6-9a49-dbccffc46c51.png


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#114 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEEESoXdoxkK8NFe2gpoX-emDHTSC-Cks5qMXLhgaJpZM4Itoyp
.

@jaredsburrows
Copy link
Contributor

@JakeWharton I'll update my PR as well.

@JakeWharton
Copy link
Owner

This is blocked by 2.2.0 being released then which can update the SDK
automatically for v24 of tools (and everything else).

On Thu, Jun 16, 2016 at 12:02 PM Jared Burrows notifications@github.com
wrote:

@JakeWharton https://github.com/JakeWharton I'll update my PR as well.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#114 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAEEEf2ec-BgM5anr9psoLAMjF10KaYCks5qMXN6gaJpZM4Itoyp
.

@jaredsburrows
Copy link
Contributor

jaredsburrows commented Jun 17, 2016

@mattprecious Try this build again. Platform tools 24 is out. I am doing it here: https://github.com/jaredsburrows/android-gradle-java-app-template/blob/master/.travis.yml.

@JakeWharton
Copy link
Owner

You spelled launch "Lauch".

screenshot_20160619-025528

@JakeWharton JakeWharton merged commit 111ba00 into master Jun 19, 2016
@JakeWharton JakeWharton deleted the mattp/quick-tile branch June 19, 2016 07:00
@mattprecious
Copy link
Collaborator Author

Just saving bytes.

@jaredsburrows
Copy link
Contributor

@mattprecious Lol. Make a quick PR to fix?

@mattprecious
Copy link
Collaborator Author

It's already fixed. I believe Jake updated my branch before merging.

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.

None yet

3 participants