Browse Source

Save some processing power

feature_fragments
vanitasvitae 5 years ago
parent
commit
e6e0b1f680
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
  1. 10
      app/src/main/java/de/trac/spherical/MainActivity.java

10
app/src/main/java/de/trac/spherical/MainActivity.java

@ -92,10 +92,12 @@ public class MainActivity extends AppCompatActivity {
String xml = SphereParser.getXMLContent(inputStream);
PhotoSphereMetadata metadata = SphereParser.parse(xml);
inputStream = getContentResolver().openInputStream(uri);
if (metadata.isUsePanoramaViewer()) {
displayPhotoSphere(uri);
displayPhotoSphere(inputStream, metadata);
} else {
displayFlatImage(uri);
displayFlatImage(inputStream);
}
} catch (FileNotFoundException e) {
@ -132,9 +134,9 @@ public class MainActivity extends AppCompatActivity {
/**
* Display a flat image.
* @param uri
* @param inputStream
*/
private void displayFlatImage(Uri uri) {
private void displayFlatImage(InputStream inputStream) {
}
}

Loading…
Cancel
Save