Search in sources :

Example 16 with Announcer

use of com.hippo.scene.Announcer in project EhViewer by seven332.

the class SignInScene method onClick.

@Override
public void onClick(View v) {
    MainActivity activity = getActivity2();
    if (null == activity) {
        return;
    }
    if (mRegister == v) {
        UrlOpener.openUrl(activity, EhUrl.URL_REGISTER, false);
    } else if (mSignIn == v) {
        signIn();
    } else if (mSignInViaWebView == v) {
        startScene(new Announcer(WebViewSignInScene.class).setRequestCode(this, REQUEST_CODE_WEBVIEW));
    } else if (mSignInViaCookies == v) {
        startScene(new Announcer(CookieSignInScene.class).setRequestCode(this, REQUEST_CODE_COOKIE));
    } else if (mSkipSigningIn == v) {
        // Set gallery size SITE_E if skip sign in
        Settings.putGallerySite(EhUrl.SITE_E);
        redirectTo();
    }
}
Also used : Announcer(com.hippo.scene.Announcer) MainActivity(com.hippo.ehviewer.ui.MainActivity)

Aggregations

Announcer (com.hippo.scene.Announcer)16 Bundle (android.os.Bundle)11 RecyclerView (android.support.v7.widget.RecyclerView)4 View (android.view.View)4 TextView (android.widget.TextView)4 EasyRecyclerView (com.hippo.easyrecyclerview.EasyRecyclerView)4 Context (android.content.Context)3 Intent (android.content.Intent)3 Point (android.graphics.Point)3 PersistableBundle (android.os.PersistableBundle)3 AdapterView (android.widget.AdapterView)3 ListView (android.widget.ListView)3 ShowcaseView (com.github.amlcurran.showcaseview.ShowcaseView)3 ListUrlBuilder (com.hippo.ehviewer.client.data.ListUrlBuilder)3 MainActivity (com.hippo.ehviewer.ui.MainActivity)3 GalleryListScene (com.hippo.ehviewer.ui.scene.GalleryListScene)3 Uri (android.net.Uri)2 Toolbar (android.support.v7.widget.Toolbar)2 MenuItem (android.view.MenuItem)2 GalleryInfo (com.hippo.ehviewer.client.data.GalleryInfo)2