|
|
|
@ -37,6 +37,9 @@ import org.isoron.uhabits.utils.*;
|
|
|
|
|
|
|
|
|
|
import java.io.*;
|
|
|
|
|
|
|
|
|
|
import static android.os.Build.VERSION.*;
|
|
|
|
|
import static android.os.Build.VERSION_CODES.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Base class for all screens in the application.
|
|
|
|
|
* <p>
|
|
|
|
@ -95,6 +98,22 @@ public class BaseScreen
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
public static int getDefaultActionBarColor(Context context)
|
|
|
|
|
{
|
|
|
|
|
if (SDK_INT < LOLLIPOP)
|
|
|
|
|
{
|
|
|
|
|
return context
|
|
|
|
|
.getResources()
|
|
|
|
|
.getColor(R.color.grey_900, context.getTheme());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
StyledResources res = new StyledResources(context);
|
|
|
|
|
return res.getColor(R.attr.colorPrimary);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Notifies the screen that its contents should be updated.
|
|
|
|
|
*/
|
|
|
|
|