Switch map button accoding to map and list

This commit is contained in:
Neslihan 2017-05-14 15:51:50 +03:00
parent bb47332a37
commit dc1b04f3ed
13 changed files with 34 additions and 10 deletions

View file

@ -1,7 +1,9 @@
package fr.free.nrw.commons;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.preference.PreferenceManager;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
@ -306,4 +308,12 @@ public class Utils {
public static boolean isNullOrWhiteSpace(String value) {
return value == null || value.trim().isEmpty();
}
public static boolean isDarkTheme(Context context){
if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme",true)) {
return true;
}else {
return false;
}
}
}