mirror of
https://github.com/vanitasvitae/Spherical
synced 2025-09-10 18:59:42 +02:00
Minor code cleanup
This commit is contained in:
parent
f0ccbe0c26
commit
e1ffec96a5
4 changed files with 75 additions and 67 deletions
|
@ -15,14 +15,13 @@ import android.widget.FrameLayout;
|
|||
import de.trac.spherical.rendering.PhotoSphereSurfaceView;
|
||||
|
||||
/**
|
||||
* Created by vanitas on 17.09.17.
|
||||
* Fragment containing a PhotoSphereSurfaceView which displays the image projected on a sphere.
|
||||
*/
|
||||
public class SphereFragment extends ImageFragment implements View.OnTouchListener {
|
||||
|
||||
private static final String TAG = "SphericalSFrag";
|
||||
|
||||
private PhotoSphereSurfaceView surfaceView;
|
||||
private Bitmap bitmap;
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
|
||||
|
@ -74,7 +73,6 @@ public class SphereFragment extends ImageFragment implements View.OnTouchListene
|
|||
if (surfaceView == null) {
|
||||
return;
|
||||
}
|
||||
this.bitmap = bitmap;
|
||||
surfaceView.setBitmap(bitmap);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue