List of usage examples for android.app WallpaperManager FLAG_SYSTEM
int FLAG_SYSTEM
To view the source code for android.app WallpaperManager FLAG_SYSTEM.
Click Source Link
From source file:com.maxwen.wallpaper.board.fragments.dialogs.WallpaperApplyFragment.java
@Override public void onClick(View view) { int id = view.getId(); int applyFlag = -1; if (id == R.id.apply_all) { applyFlag = WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM; } else if (id == R.id.apply_home) { applyFlag = WallpaperManager.FLAG_SYSTEM; } else if (id == R.id.apply_lock) { applyFlag = WallpaperManager.FLAG_LOCK; }/*from w w w . j ava2 s. c o m*/ if (applyFlag != -1) { WallpaperHelper.doApplyWallpaper(getContext(), mRect, mColor, mUrl, mName, applyFlag); } dismiss(); }