Commit 641000cd authored by Poli97's avatar Poli97

Removed useless code

parent 4cd4e3ac
......@@ -21,14 +21,11 @@ public class MainActivity extends AppCompatActivity {
changeorder = new Button(this);
changeorder.setId(R.id.changeOrderButton); // Add the ID so that accessibility traversal can identify this view
changeorder.setText("Presso to change order");
changeorder.setText("Press to change order");
changeorder.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.i("BUTTON","Clicked change order button");
b3.invalidate();
b1.invalidate();
b2.invalidate();
//changeorder.setAccessibilityTraversalBefore(b3.getId());
b3.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
b3.setAccessibilityTraversalAfter(changeorder.getId());
......@@ -44,13 +41,13 @@ public class MainActivity extends AppCompatActivity {
}
});
linearlayout.addView(changeorder);
Log.i("PIPPO","ciao");
AccessibilityManager am = ((AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE));
if(am.isEnabled()){
Log.i("PIPPO","talkback attivo");
Log.i("SCREENREADER","talkback enabled");
}
if(am.isTouchExplorationEnabled()){
Log.i("PIPPO","Exploration attiva");
Log.i("SCREENREADER","Exploration enabled");
}
b1 = new Button(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment