mirror of
https://github.com/etesync/android
synced 2025-01-09 07:11:00 +00:00
Toast the server name on startup in debug mode.
This commit is contained in:
parent
2225ee0a03
commit
afca87f4d8
@ -20,11 +20,15 @@ import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import at.bitfire.davdroid.Constants;
|
||||
import at.bitfire.davdroid.R;
|
||||
import at.bitfire.davdroid.ui.setup.LoginActivity;
|
||||
|
||||
import static at.bitfire.davdroid.BuildConfig.DEBUG;
|
||||
import static at.bitfire.davdroid.Constants.serviceUrl;
|
||||
|
||||
public class AccountsActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
|
||||
|
||||
@Override
|
||||
@ -58,6 +62,10 @@ public class AccountsActivity extends AppCompatActivity implements NavigationVie
|
||||
for (StartupDialogFragment fragment : StartupDialogFragment.getStartupDialogs(this))
|
||||
ft.add(fragment, null);
|
||||
ft.commit();
|
||||
|
||||
if (DEBUG) {
|
||||
Toast.makeText(this, "Server: " + serviceUrl.toString(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user