package org.commcare.graph.activities;

import android.annotation.TargetApi;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

/**
 * Full-screen view of a graph.
 *
 * Created by jschweers on 11/20/2015.
 */
public class GraphActivity extends FragmentActivity {

    @TargetApi(Build.VERSION_CODES.HONEYCOMB)
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        (new GraphActivityStateHandler(this)).setContent();
    }
}
@@ -73,16 +73,57 @@
 etApi;%0D%0A
+import android.content.pm.ActivityInfo;%0D%0A
 import a
@@ -523,24 +523,106 @@
 nceState);%0D%0A
+        this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);%0D%0A
         (new
@@ -678,8 +678,10 @@
     %7D%0D%0A%7D
+%0D%0A

Set orientation in activity