Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/com/example/tapjacking/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
import android.widget.Toast;

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// get the root view and activate touch filtering to prevent tap jacking
View v = findViewById(android.R.id.content);
v.setFilterTouchesWhenObscured(true);
}

private static int SEEK_MAX = 100;

Expand Down