summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/LoginActivity.java
blob: 15166c679633083e2700c98c027f0543c3133ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package se.leap.bitmaskclient;

import android.os.Bundle;
import androidx.annotation.Nullable;

import butterknife.OnClick;

/**
 * Activity to login to chosen Provider
 *
 * Created by fupduck on 09.01.18.
 */

public class LoginActivity extends ProviderCredentialsBaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setProgressbarText(R.string.logging_in);
        setProviderHeaderLogo(R.drawable.logo);
        setProviderHeaderText(R.string.login_to_profile);
    }

    @Override
    @OnClick(R.id.button)
    void handleButton() {
        super.handleButton();
        login(getUsername(), getPassword());
    }

}