// Path: app/src/main/java/com/konifar/annict/viewmodel/SearchViewModel.java
// public class SearchViewModel extends BaseObservable implements ViewModel {
// 
//     private final PageNavigator navigator;
// 
//     @Inject
//     public SearchViewModel(PageNavigator navigator) {
//         this.navigator = navigator;
//     }
// 
//     public void showData(@Nullable String accessToken, @Nullable String authCode,
//         @IdRes int layoutResId) {
//         if (!TextUtils.isEmpty(accessToken)) {
//             navigator.replaceSearchFragment(layoutResId);
//         } else {
//             // After authentication, intent has uri data including auth code.
//             if (TextUtils.isEmpty(authCode)) {
//                 navigator.startLoginActivity();
//                 navigator.finish();
//             } else {
//                 navigator.replaceSearchFragment(authCode, layoutResId);
//             }
//         }
//     }
// 
//     @Override
//     public void destroy() {
//         // Do nothing
//     }
// }


import com.konifar.annict.R;
import com.konifar.annict.databinding.ActivitySearchBinding;
import com.konifar.annict.pref.DefaultPrefs;
import com.konifar.annict.viewmodel.SearchViewModel;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.util.Log;
import javax.inject.Inject;
package com.konifar.annict.view.activity;




public class SearchActivity extends BaseActivity {

    private static final String TAG = SearchActivity.class.getSimpleName();

    @Inject
// Path: app/src/main/java/com/konifar/annict/viewmodel/SearchViewModel.java
// public class SearchViewModel extends BaseObservable implements ViewModel {
// 
//     private final PageNavigator navigator;
// 
//     @Inject
//     public SearchViewModel(PageNavigator navigator) {
//         this.navigator = navigator;
//     }
// 
//     public void showData(@Nullable String accessToken, @Nullable String authCode,
//         @IdRes int layoutResId) {
//         if (!TextUtils.isEmpty(accessToken)) {
//             navigator.replaceSearchFragment(layoutResId);
//         } else {
//             // After authentication, intent has uri data including auth code.
//             if (TextUtils.isEmpty(authCode)) {
//                 navigator.startLoginActivity();
//                 navigator.finish();
//             } else {
//                 navigator.replaceSearchFragment(authCode, layoutResId);
//             }
//         }
//     }
// 
//     @Override
//     public void destroy() {
//         // Do nothing
//     }
// }


// Path: app/src/main/java/com/konifar/annict/view/activity/SearchActivity.java
import com.konifar.annict.R;
import com.konifar.annict.databinding.ActivitySearchBinding;
import com.konifar.annict.pref.DefaultPrefs;
import com.konifar.annict.viewmodel.SearchViewModel;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.util.Log;
import javax.inject.Inject;

package com.konifar.annict.view.activity;




public class SearchActivity extends BaseActivity {

    private static final String TAG = SearchActivity.class.getSimpleName();

    @Inject
    SearchViewModel viewModel;