diff options
Diffstat (limited to 'src/com/cyanogenmod')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Launcher.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index 454dbb0..bae9389 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -349,6 +349,17 @@ public final class Launcher extends Activity @Override protected void onCreate(Bundle savedInstanceState) { + // Listen for expanded desktop + getContentResolver().registerContentObserver( + Settings.System.getUriFor(Settings.System.EXPANDED_DESKTOP_STATE), + false, new ContentObserver(new Handler()) { + @Override + public void onChange(boolean selfChange) { + // Refresh launcher content + finish(); + } + }); + if (DEBUG_STRICT_MODE) { StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectDiskReads() |