-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from tomfong/post-v2.8.0-dev
3.0.0
- Loading branch information
Showing
43 changed files
with
4,018 additions
and
3,494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
android/app/src/main/java/com/tomfong/simpleqr/MyQSTileService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.tomfong.simpleqr; | ||
|
||
import android.content.Intent; | ||
import android.os.Build; | ||
import android.service.quicksettings.Tile; | ||
import android.service.quicksettings.TileService; | ||
import android.util.Log; | ||
|
||
import androidx.annotation.RequiresApi; | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.N) | ||
public class MyQSTileService extends TileService { | ||
|
||
// Called when the user adds your tile. | ||
@Override | ||
public void onTileAdded() { | ||
super.onTileAdded(); | ||
Log.println(Log.INFO,"MyQSTileService","onTileAdded"); | ||
} | ||
|
||
// Called when your app can update your tile. | ||
@Override | ||
public void onStartListening() { | ||
super.onStartListening(); | ||
Log.println(Log.INFO,"MyQSTileService","onStartListening"); | ||
Tile tile = this.getQsTile(); | ||
if (MainActivity.active) { | ||
tile.setState(Tile.STATE_ACTIVE); | ||
} else { | ||
tile.setState(Tile.STATE_INACTIVE); | ||
} | ||
tile.updateTile(); | ||
} | ||
|
||
// Called when your app can no longer update your tile. | ||
@Override | ||
public void onStopListening() { | ||
super.onStopListening(); | ||
Log.println(Log.INFO,"MyQSTileService","onStopListening"); | ||
} | ||
|
||
// Called when the user taps on your tile in an active or inactive state. | ||
@Override | ||
public void onClick() { | ||
super.onClick(); | ||
Log.println(Log.INFO,"MyQSTileService","onClick"); | ||
Tile tile = this.getQsTile(); | ||
Intent intent = new Intent(this.getApplicationContext(), MainActivity.class); | ||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | ||
startActivityAndCollapse(intent); | ||
tile.setState(Tile.STATE_ACTIVE); | ||
tile.updateTile(); | ||
} | ||
|
||
// Called when the user removes your tile. | ||
@Override | ||
public void onTileRemoved() { | ||
super.onTileRemoved(); | ||
Log.println(Log.INFO,"MyQSTileService","onTileRemoved"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
android/app/src/main/res/drawable/ic_baseline_qr_code_24.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<vector android:height="24dp" android:tint="#000000" | ||
android:viewportHeight="24" android:viewportWidth="24" | ||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M3,11h8V3H3V11zM5,5h4v4H5V5z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M3,21h8v-8H3V21zM5,15h4v4H5V15z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M13,3v8h8V3H13zM19,9h-4V5h4V9z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M19,19h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M13,13h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M15,15h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M13,17h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M15,19h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M17,17h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M17,13h2v2h-2z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M19,15h2v2h-2z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
ext { | ||
minSdkVersion = 23 | ||
compileSdkVersion = 31 | ||
targetSdkVersion = 31 | ||
androidxActivityVersion = '1.2.0' | ||
androidxAppCompatVersion = '1.2.0' | ||
androidxCoordinatorLayoutVersion = '1.1.0' | ||
androidxCoreVersion = '1.3.2' | ||
androidxFragmentVersion = '1.3.0' | ||
junitVersion = '4.13.1' | ||
androidxJunitVersion = '1.1.2' | ||
androidxEspressoCoreVersion = '3.3.0' | ||
cordovaAndroidVersion = '7.0.0' | ||
minSdkVersion = 22 | ||
compileSdkVersion = 32 | ||
targetSdkVersion = 32 | ||
androidxActivityVersion = '1.4.0' | ||
androidxAppCompatVersion = '1.4.2' | ||
androidxCoordinatorLayoutVersion = '1.2.0' | ||
androidxCoreVersion = '1.8.0' | ||
androidxFragmentVersion = '1.4.1' | ||
junitVersion = '4.13.2' | ||
androidxJunitVersion = '1.1.3' | ||
androidxEspressoCoreVersion = '3.4.0' | ||
cordovaAndroidVersion = '10.1.1' | ||
coreSplashScreenVersion = '1.0.0-rc01' | ||
androidxWebkitVersion = '1.4.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* Upgraded framework, improved performance and fixed known bugs. | ||
* Support quick access tile in the Quick Settings panel. | ||
* More customizable UI. | ||
* Removed Read/Write Contacts permission. |
Oops, something went wrong.