From 6cc2544048762b52d1c44ba3439ae3b97fee19b3 Mon Sep 17 00:00:00 2001 From: "UncleVasya (Oleg Ovcharenko)" Date: Tue, 25 Feb 2014 20:49:18 +0200 Subject: [PATCH] [android] Roles screen bug fix --- .../p2psafety/src/ua/p2psafety/roles/SetRolesFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/p2psafety-android/p2psafety/src/ua/p2psafety/roles/SetRolesFragment.java b/p2psafety-android/p2psafety/src/ua/p2psafety/roles/SetRolesFragment.java index 2a756fb..895c78f 100644 --- a/p2psafety-android/p2psafety/src/ua/p2psafety/roles/SetRolesFragment.java +++ b/p2psafety-android/p2psafety/src/ua/p2psafety/roles/SetRolesFragment.java @@ -67,6 +67,11 @@ public void onViewCreated(View view, Bundle savedInstanceState) { public void onResume() { super.onResume(); + if (!Utils.isServerAuthenticated(mActivity)) { + Toast.makeText(mActivity, "Please auth at server", Toast.LENGTH_LONG).show(); + return; + } + mSaveBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {