Commit b2c7a6fc authored by Paolo Pecis's avatar Paolo Pecis

Removed some useless code

parent 6d5cd79b
...@@ -26,9 +26,6 @@ public class MainActivity extends AppCompatActivity { ...@@ -26,9 +26,6 @@ public class MainActivity extends AppCompatActivity {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Log.i("BUTTON","Clicked change order button"); Log.i("BUTTON","Clicked change order button");
b3.invalidate();
b1.invalidate();
b2.invalidate();
//changeorder.setAccessibilityTraversalBefore(b3.getId()); //changeorder.setAccessibilityTraversalBefore(b3.getId());
b3.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); b3.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
b3.setAccessibilityTraversalAfter(changeorder.getId()); b3.setAccessibilityTraversalAfter(changeorder.getId());
...@@ -44,13 +41,13 @@ public class MainActivity extends AppCompatActivity { ...@@ -44,13 +41,13 @@ public class MainActivity extends AppCompatActivity {
} }
}); });
linearlayout.addView(changeorder); linearlayout.addView(changeorder);
Log.i("PIPPO","ciao");
AccessibilityManager am = ((AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE)); AccessibilityManager am = ((AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE));
if(am.isEnabled()){ if(am.isEnabled()){
Log.i("PIPPO","talkback attivo"); Log.i("SCREENREADER","talkback is enabled");
} }
if(am.isTouchExplorationEnabled()){ if(am.isTouchExplorationEnabled()){
Log.i("PIPPO","Exploration attiva"); Log.i("SCREENREADER","Exploration is enabled");
} }
b1 = new Button(this); 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