new icon & improved functionality for quick settings tile
This commit is contained in:
parent
9602888ad3
commit
2b477f4eea
3 changed files with 14 additions and 2 deletions
|
@ -101,7 +101,7 @@
|
||||||
<service
|
<service
|
||||||
tools:targetApi="24"
|
tools:targetApi="24"
|
||||||
android:name="com.keylesspalace.tusky.service.TuskyTileService"
|
android:name="com.keylesspalace.tusky.service.TuskyTileService"
|
||||||
android:icon="@drawable/ic_send_24dp"
|
android:icon="@drawable/ic_tusky"
|
||||||
android:label="Compose Toot"
|
android:label="Compose Toot"
|
||||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class TuskyTileService extends TileService {
|
||||||
@Override
|
@Override
|
||||||
public void onClick() {
|
public void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
startActivity(new Intent(this, ComposeActivity.class));
|
|
||||||
|
startActivityAndCollapse(new Intent(this, ComposeActivity.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
11
app/src/main/res/drawable/ic_tusky.xml
Normal file
11
app/src/main/res/drawable/ic_tusky.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="124.87726"
|
||||||
|
android:viewportWidth="124.87726">
|
||||||
|
<path
|
||||||
|
android:fillAlpha="1"
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M62.44,-0C21.95,-1.54 -10.6,42.7 2.79,80.89 13.29,120 65.15,138.09 97.69,113.97 131.97,92.38 133.91,37.49 101.25,13.53 90.33,4.81 76.41,-0.03 62.44,-0ZM52.4,36.78c7.13,-0.4 13.52,4.11 16.65,10.33 3.44,5.62 5.43,12.05 8.22,17.91 3.42,-5.54 4.8,-12.08 7.04,-18.04 7.88,-3.54 5.2,7.99 3.69,12.24 -0.86,4.53 -4.27,9.68 -5.63,13.33 4.03,3.42 11.37,3.39 13.05,-2.51 2.91,-7.25 0.65,-15.1 0.37,-22.51 4.87,-6.11 7.7,5.13 7.4,9.05 0.15,7.73 0.02,16.45 -4.9,22.83 -5.17,5.27 -14.46,5.36 -20.12,-0.09 -1.3,1.07 -3.72,3.26 -6.6,4.88 -11.57,7.09 -28.12,4.66 -39.21,-2.89C22.13,74.05 19.08,58.56 26.45,48.21 29.83,43.05 34.83,37.18 41.59,37.42 33.26,42.27 27.83,51.81 28.95,61.51 29.1,72.01 38.66,80.41 48.89,80.59 57.83,81.45 66.89,78.01 72.92,71.35 68.84,63.19 67.26,53.86 62.2,46.2 59.69,42.53 54.84,39.42 52.4,36.78Z"
|
||||||
|
android:strokeWidth="0.09375" />
|
||||||
|
</vector>
|
Loading…
Reference in a new issue