-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ On Android N and above use the new API to set both the general system wallpaper and the lock-screen-specific wallpaper
- Loading branch information
devliber
committed
Sep 16, 2016
1 parent
be6f4b2
commit 603d4b8
Showing
6 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (C) 2014-2016 Appgramming. All rights reserved. | ||
* http://www.appgramming.com | ||
*/ | ||
package com.appgramming.lonecolor; | ||
|
||
import android.content.Context; | ||
import android.content.Intent; | ||
|
||
/** | ||
* Static utility methods. | ||
*/ | ||
class Utils { | ||
|
||
/** | ||
* Goes home. | ||
*/ | ||
static void goHome(Context context) { | ||
Intent startMain = new Intent(Intent.ACTION_MAIN); | ||
startMain.addCategory(Intent.CATEGORY_HOME); | ||
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | ||
context.startActivity(startMain); | ||
} | ||
} |