Commit 2a7a3ea7 authored by HashikD's avatar HashikD
Browse files

Add comments

parent 63d4c44b
......@@ -198,7 +198,11 @@ public class MainActivity extends AppCompatActivity implements MainFragmentCallb
return super.onOptionsItemSelected(item);
}
/**
* Relay failed. Reset Snowflake status in MainFragment.
*
* @param message Cause of failure.
*/
@Override
public void relayFailed(String message) {
runOnUiThread(() -> {
......@@ -209,6 +213,9 @@ public class MainActivity extends AppCompatActivity implements MainFragmentCallb
});
}
/**
* Relay test success. Start Snowflake.
*/
@Override
public void relaySuccess() {
runOnUiThread(() -> {
......
......@@ -150,6 +150,11 @@ public class MainFragment extends Fragment {
colorAnimation.start();
}
/**
* Relay failed. Callback from MainActivity. Reset everything and show the message of failure.
*
* @param message Cause of failure.
*/
public void relayFailed(String message) {
startButton.setEnabled(true);
startButton.setClickable(true);
......
......@@ -158,6 +158,9 @@ public class MainActivityModel implements MainActivityMVPContract.Model {
}
}
/**
* Checks the relay URL availability.
*/
@Override
public void relayCheck() {
Request req;
......
Supports Markdown
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