Merge pull request #1074 from mfietz/upgrade_iconify
Upgrade Iconify to v2
This commit is contained in:
commit
ad0212c039
|
@ -22,8 +22,8 @@ dependencies {
|
|||
compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
|
||||
compile 'com.squareup.okio:okio:1.2.0'
|
||||
compile 'de.greenrobot:eventbus:2.4.0'
|
||||
compile 'com.joanzapata.android:android-iconify:1.0.9'
|
||||
compile 'io.reactivex:rxandroid:1.0.1'
|
||||
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.0.3'
|
||||
|
||||
compile project(':core')
|
||||
compile project(':library:drag-sort-listview')
|
||||
|
|
|
@ -3,6 +3,9 @@ package de.danoeh.antennapod;
|
|||
import android.app.Application;
|
||||
import android.content.res.Configuration;
|
||||
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
import com.joanzapata.iconify.fonts.FontAwesomeModule;
|
||||
|
||||
import de.danoeh.antennapod.core.feed.EventDistributor;
|
||||
import de.danoeh.antennapod.core.preferences.PlaybackPreferences;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
|
@ -42,6 +45,7 @@ public class PodcastApp extends Application {
|
|||
PlaybackPreferences.init(this);
|
||||
NetworkUtils.init(this);
|
||||
EventDistributor.getInstance();
|
||||
Iconify.with(new FontAwesomeModule());
|
||||
|
||||
SPAUtil.sendSPAppsQueryFeedsIntent(this);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ import android.widget.Toast;
|
|||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.core.dialog.ConfirmationDialog;
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.view.View;
|
|||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
|
||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||
import de.danoeh.antennapod.core.feed.FeedMedia;
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.bumptech.glide.Glide;
|
|||
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
|
||||
import com.bumptech.glide.request.animation.GlideAnimation;
|
||||
import com.bumptech.glide.request.target.GlideDrawableImageViewTarget;
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import android.widget.Button;
|
|||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
|
|
@ -10,13 +10,13 @@ import android.view.LayoutInflater;
|
|||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.IconTextView;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||
import com.joanzapata.iconify.widget.IconTextView;
|
||||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.bumptech.glide.Glide;
|
|||
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
|
||||
import com.bumptech.glide.request.animation.GlideAnimation;
|
||||
import com.bumptech.glide.request.target.GlideDrawableImageViewTarget;
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
|
|
|
@ -17,8 +17,9 @@ import android.widget.Button;
|
|||
import android.widget.ListView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.joanzapata.android.iconify.IconDrawable;
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.Icon;
|
||||
import com.joanzapata.iconify.IconDrawable;
|
||||
import com.joanzapata.iconify.fonts.FontAwesomeIcons;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -149,7 +150,7 @@ public class EpisodesApplyActionFragment extends Fragment {
|
|||
ta.recycle();
|
||||
|
||||
menu.findItem(R.id.sort).setIcon(new IconDrawable(getActivity(),
|
||||
Iconify.IconValue.fa_sort).color(textColor).actionBarSize());
|
||||
FontAwesomeIcons.fa_sort).color(textColor).actionBarSize());
|
||||
|
||||
mSelectToggle = menu.findItem(R.id.select_toggle);
|
||||
mSelectToggle.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||
|
@ -165,20 +166,20 @@ public class EpisodesApplyActionFragment extends Fragment {
|
|||
});
|
||||
|
||||
menu.findItem(R.id.select_options).setIcon(new IconDrawable(getActivity(),
|
||||
Iconify.IconValue.fa_caret_down).color(textColor).actionBarSize());
|
||||
FontAwesomeIcons.fa_caret_down).color(textColor).actionBarSize());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPrepareOptionsMenu (Menu menu) {
|
||||
Iconify.IconValue iVal;
|
||||
Icon icon;
|
||||
if(checkedIds.size() == episodes.size()) {
|
||||
iVal = Iconify.IconValue.fa_check_square_o;
|
||||
icon = FontAwesomeIcons.fa_check_square_o;
|
||||
} else if(checkedIds.size() == 0) {
|
||||
iVal = Iconify.IconValue.fa_square_o;
|
||||
icon = FontAwesomeIcons.fa_square_o;
|
||||
} else {
|
||||
iVal = Iconify.IconValue.fa_minus_square_o;
|
||||
icon = FontAwesomeIcons.fa_minus_square_o;
|
||||
}
|
||||
mSelectToggle.setIcon(new IconDrawable(getActivity(), iVal).color(textColor).actionBarSize());
|
||||
mSelectToggle.setIcon(new IconDrawable(getActivity(), icon).color(textColor).actionBarSize());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ import android.view.MenuInflater;
|
|||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.IconTextView;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ListAdapter;
|
||||
|
@ -34,8 +33,10 @@ import android.widget.TextView;
|
|||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||
import com.joanzapata.android.iconify.IconDrawable;
|
||||
import com.joanzapata.android.iconify.Iconify;
|
||||
import com.joanzapata.iconify.IconDrawable;
|
||||
import com.joanzapata.iconify.Iconify;
|
||||
import com.joanzapata.iconify.fonts.FontAwesomeIcons;
|
||||
import com.joanzapata.iconify.widget.IconTextView;
|
||||
|
||||
import org.apache.commons.lang3.Validate;
|
||||
|
||||
|
@ -234,7 +235,7 @@ public class ItemlistFragment extends ListFragment {
|
|||
ta.recycle();
|
||||
|
||||
menu.findItem(R.id.episode_actions).setIcon(new IconDrawable(getActivity(),
|
||||
Iconify.IconValue.fa_gears).color(textColor).actionBarSize());
|
||||
FontAwesomeIcons.fa_gears).color(textColor).actionBarSize());
|
||||
|
||||
isUpdatingFeed = MenuItemUtils.updateRefreshMenuItem(menu, R.id.refresh_item, updateRefreshMenuItemChecker);
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
tools:text="Podcast author"
|
||||
tools:background="@android:color/holo_green_dark" />
|
||||
|
||||
<IconTextView
|
||||
<com.joanzapata.iconify.widget.IconTextView
|
||||
android:id="@+id/txtvFailure"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
tools:text="23"
|
||||
tools:background="@android:color/holo_green_dark"/>
|
||||
|
||||
<IconTextView
|
||||
<com.joanzapata.iconify.widget.IconTextView
|
||||
android:id="@+id/itxtvFailure"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
Loading…
Reference in New Issue