Skip to content

Commit

Permalink
Update ir.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sssemil committed Mar 27, 2014
1 parent 06f2f29 commit 8372d2a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/com/sssemil/sonyirremote/ir/ir.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ir);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
//fixPermissionsForIr();
fixPermissionsForIr();
spinner = ((Spinner) findViewById(R.id.spinner));
spinner6 = ((Spinner) findViewById(R.id.spinner6));
new Thread(new Runnable() {
Expand Down Expand Up @@ -422,7 +422,13 @@ public boolean onOptionsItemSelected(MenuItem item) {
main = false;

final GetAwItems getAwItems1 = new GetAwItems(ir.this);
getAwItems1.execute();
try {
String ret = getAwItems1.execute().get();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}

spinner6 = ((Spinner) findViewById(R.id.spinner6));
spinner6.setSelection(0);
Expand Down

0 comments on commit 8372d2a

Please sign in to comment.