mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Bind views
This commit is contained in:
parent
dccbe329c1
commit
14ce5da674
1 changed files with 39 additions and 6 deletions
|
|
@ -1,10 +1,42 @@
|
||||||
package fr.free.nrw.commons.contributions;
|
package fr.free.nrw.commons.contributions;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.support.design.widget.TabLayout;
|
||||||
|
import android.support.v4.view.ViewPager;
|
||||||
|
|
||||||
|
import javax.inject.Inject;
|
||||||
|
|
||||||
|
import butterknife.BindView;
|
||||||
|
import butterknife.ButterKnife;
|
||||||
|
import fr.free.nrw.commons.R;
|
||||||
import fr.free.nrw.commons.auth.AuthenticatedActivity;
|
import fr.free.nrw.commons.auth.AuthenticatedActivity;
|
||||||
|
import fr.free.nrw.commons.auth.SessionManager;
|
||||||
|
|
||||||
public class ContributionsActivity
|
public class ContributionsActivity
|
||||||
extends AuthenticatedActivity {
|
extends AuthenticatedActivity {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
SessionManager sessionManager;
|
||||||
|
|
||||||
|
@BindView(R.id.tab_layout)
|
||||||
|
TabLayout tabLayout;
|
||||||
|
@BindView(R.id.pager)
|
||||||
|
ViewPager viewPager;
|
||||||
|
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_contributions);
|
||||||
|
ButterKnife.bind(this);
|
||||||
|
|
||||||
|
requestAuthToken();
|
||||||
|
initDrawer();
|
||||||
|
setTitle(getString(R.string.navigation_item_home)); // Should I create a new string with another name instead?
|
||||||
|
|
||||||
|
//prepareForContributions();
|
||||||
|
//prepareForNearby();
|
||||||
|
// Add tabs and fragments after Auth cookie received
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onAuthCookieAcquired(String authCookie) {
|
protected void onAuthCookieAcquired(String authCookie) {
|
||||||
|
|
||||||
|
|
@ -14,4 +46,5 @@ public class ContributionsActivity
|
||||||
protected void onAuthFailure() {
|
protected void onAuthFailure() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue