Bug:
7301182
Status bar visibility in FilterShow will now match
the one in Camera/Gallery so that there isn't weird
jank when launching.
Change-Id: I3e942633b351264d2cd38cc5b587de32e38521ed
public PanoramaViewHelper getPanoramaViewHelper() {
return mPanoramaViewHelper;
}
+
+ protected boolean isFullscreen() {
+ return (getWindow().getAttributes().flags
+ & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0;
+ }
}
intent.setClass(mActivity, FilterShowActivity.class);
intent.setDataAndType(current.getContentUri(), current.getMimeType())
.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+ intent.putExtra(FilterShowActivity.LAUNCH_FULLSCREEN,
+ mActivity.isFullscreen());
mRecenterCameraOnResume = false;
mActivity.startActivityForResult(intent, REQUEST_EDIT);
overrideTransitionToEditor();
.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() == 0) {
intent.setAction(Intent.ACTION_EDIT);
}
+ intent.putExtra(FilterShowActivity.LAUNCH_FULLSCREEN,
+ mActivity.isFullscreen());
mRecenterCameraOnResume = false;
((Activity) mActivity).startActivityForResult(Intent.createChooser(intent, null),
REQUEST_EDIT);
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
+import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
public static final String CROP_ACTION = "com.android.camera.action.CROP";
public static final String TINY_PLANET_ACTION = "com.android.camera.action.TINY_PLANET";
+ public static final String LAUNCH_FULLSCREEN = "launch-fullscreen";
private final PanelController mPanelController = new PanelController();
private ImageLoader mImageLoader = null;
private ImageShow mImageShow = null;
mPanelController.setMasterImage(mImageShow);
mPanelController.setCurrentPanel(mFxButton);
Intent intent = getIntent();
+ if (intent.getBooleanExtra(LAUNCH_FULLSCREEN, false)) {
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+
String data = intent.getDataString();
if (data != null) {
Uri uri = Uri.parse(data);