app/src/main/java/org/weibeld/nytexplore/activity/MainActivity.java
public boolean isAnyFilterSet() {
        return !mPref.getString(getString(R.string.pref_begin_date), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_end_date), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_sort_order), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_news_desk), "").isEmpty();
    }
// Return true if any filter is enabled in the SharedPreferences, and false otherwise
Return true if any filter is enabled in the SharedPreferences, and false otherwise
Return true if any filter is enabled in the SharedPreferences and false otherwise
public boolean isAnyFilterSet() {
        return !mPref.getString(getString(R.string.pref_begin_date), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_end_date), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_sort_order), "").isEmpty()
                || !mPref.getString(getString(R.string.pref_news_desk), "").isEmpty();
    }
public boolean isAnyFilterSet ( ) { return ! mPref . getString ( getString ( R . string . pref_begin_date ) , "" ) . isEmpty ( ) || ! mPref . getString ( getString ( R . string . pref_end_date ) , "" ) . isEmpty ( ) || ! mPref . getString ( getString ( R . string . pref_sort_order ) , "" ) . isEmpty ( ) || ! mPref . getString ( getString ( R . string . pref_news_desk ) , "" ) . isEmpty ( ) ; }
Return true if any filter is enabled in the SharedPreferences, and false otherwise
Return true if any filter is enabled in the SharedPreferences and false otherwise