mirror of
https://github.com/playmusicexporter/playmusicexporter
synced 2024-09-20 21:54:56 +00:00
Move the powermanager before the intent. Removed wrapper properties from source control. This is dynamically generated.
This commit is contained in:
parent
259a989505
commit
381fd5c910
2 changed files with 1 additions and 7 deletions
6
gradle/wrapper/gradle-wrapper.properties
vendored
6
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +0,0 @@
|
||||||
#Sun Jan 22 21:19:51 CET 2017
|
|
||||||
distributionBase=GRADLE_USER_HOME
|
|
||||||
distributionPath=wrapper/dists
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
|
||||||
zipStorePath=wrapper/dists
|
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
|
|
@ -28,11 +28,11 @@ public class ExportAllService extends IntentService {
|
||||||
private static PowerManager m_powerManager;
|
private static PowerManager m_powerManager;
|
||||||
|
|
||||||
public static void startExport(Context pContext) {
|
public static void startExport(Context pContext) {
|
||||||
|
m_powerManager = (PowerManager) pContext.getSystemService(POWER_SERVICE);
|
||||||
Intent lIntent = new Intent(pContext, ExportAllService.class);
|
Intent lIntent = new Intent(pContext, ExportAllService.class);
|
||||||
lIntent.setAction(ACTION_EXPORT);
|
lIntent.setAction(ACTION_EXPORT);
|
||||||
pContext.startService(lIntent);
|
pContext.startService(lIntent);
|
||||||
Log.i(TAG, "Intent sent!");
|
Log.i(TAG, "Intent sent!");
|
||||||
m_powerManager = (PowerManager) pContext.getSystemService(POWER_SERVICE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExportAllService()
|
public ExportAllService()
|
||||||
|
|
Loading…
Reference in a new issue