Update NetworkActivity.java

Reverting the last commit