Search in sources :

Example 11 with ForumUser

use of forpdateam.ru.forpda.api.others.user.ForumUser in project ForPDA by RadiationX.

the class QmsBlackListFragment method onShowSearchRes.

private void onShowSearchRes(List<ForumUser> res) {
    List<String> nicks = new ArrayList<>();
    for (ForumUser user : res) {
        nicks.add(user.getNick());
    }
    nickField.setAdapter(new ArrayAdapter<>(getContext(), android.R.layout.simple_dropdown_item_1line, nicks));
}
Also used : ForumUser(forpdateam.ru.forpda.api.others.user.ForumUser) ArrayList(java.util.ArrayList)

Example 12 with ForumUser

use of forpdateam.ru.forpda.api.others.user.ForumUser in project ForPDA by RadiationX.

the class ChatThemeCreator method onShowSearchRes.

private void onShowSearchRes(List<ForumUser> res) {
    List<String> nicks = new ArrayList<>();
    for (ForumUser user : res) {
        nicks.add(user.getNick());
    }
    nickField.setAdapter(new ArrayAdapter<>(fragment.getContext(), android.R.layout.simple_dropdown_item_1line, nicks));
}
Also used : ForumUser(forpdateam.ru.forpda.api.others.user.ForumUser) ArrayList(java.util.ArrayList)

Aggregations

ForumUser (forpdateam.ru.forpda.api.others.user.ForumUser)12 ArrayList (java.util.ArrayList)8 Matcher (java.util.regex.Matcher)5 MiniTemplator (biz.source_code.miniTemplator.MiniTemplator)3 ForumUserBd (forpdateam.ru.forpda.data.realm.ForumUserBd)3 Realm (io.realm.Realm)3 Bitmap (android.graphics.Bitmap)2 SuppressLint (android.annotation.SuppressLint)1 Activity (android.app.Activity)1 Intent (android.content.Intent)1 Bundle (android.os.Bundle)1 Nullable (android.support.annotation.Nullable)1 Log (android.util.Log)1 LayoutInflater (android.view.LayoutInflater)1 Menu (android.view.Menu)1 MenuItem (android.view.MenuItem)1 View (android.view.View)1 ViewGroup (android.view.ViewGroup)1 JavascriptInterface (android.webkit.JavascriptInterface)1 WebResourceResponse (android.webkit.WebResourceResponse)1