mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Running state animations if launcher is visible
Change-Id: Ibc522edec4f86375ea75ac645b748fec43fceb31
This commit is contained in:
@@ -31,6 +31,8 @@ public abstract class BaseActivity extends Activity {
|
||||
protected UserEventDispatcher mUserEventDispatcher;
|
||||
protected SystemUiController mSystemUiController;
|
||||
|
||||
private boolean mStarted;
|
||||
|
||||
public DeviceProfile getDeviceProfile() {
|
||||
return mDeviceProfile;
|
||||
}
|
||||
@@ -69,4 +71,20 @@ public abstract class BaseActivity extends Activity {
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
mStarted = true;
|
||||
super.onStart();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
mStarted = false;
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
public boolean isStarted() {
|
||||
return mStarted;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user