Running state animations if launcher is visible

Change-Id: Ibc522edec4f86375ea75ac645b748fec43fceb31
This commit is contained in:
Sunny Goyal
2018-01-11 09:56:07 -08:00
parent b5d047ca14
commit cc96aa1fd4
3 changed files with 22 additions and 4 deletions

View File

@@ -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;
}
}