Commit f928ede8 authored by Varun Patil's avatar Varun Patil

Add basic achievements webview

parent 352dcd08
......@@ -75,6 +75,7 @@ import app.insti.fragment.QuickLinksFragment;
import app.insti.fragment.SettingsFragment;
import app.insti.fragment.TrainingBlogFragment;
import app.insti.fragment.UserFragment;
import app.insti.fragment.WebViewFragment;
import app.insti.notifications.NotificationId;
import me.leolin.shortcutbadger.ShortcutBadger;
import retrofit2.Call;
......@@ -571,6 +572,13 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
MapFragment mapFragment = new MapFragment();
updateFragment(mapFragment);
break;
case R.id.nav_achievements:
WebViewFragment webViewFragment = new WebViewFragment();
Bundle bundle = new Bundle();
bundle.putString(Constants.WV_TYPE, Constants.WV_TYPE_ACHIEVEMENTS);
webViewFragment.setArguments(bundle);
updateFragment(webViewFragment);
break;
case R.id.nav_complaint:
if (session.isLoggedIn()) {
......
......@@ -91,6 +91,11 @@ public class WebViewFragment extends BaseFragment {
setTitle("Update Organization");
break;
case Constants.WV_TYPE_ACHIEVEMENTS:
url += "/achievements";
setTitle("Achievements");
break;
case Constants.WV_TYPE_URL:
return args.getString(Constants.WV_URL);
}
......
Markdown is supported
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