forked from upstream-mirrors/OpenTracks
Fix compatibility issue in styles_custom.xml (#201)
* Adding indeterminateTintMode="src_in" * Add a new ThemeCustomNotTransparentto change the color of ProgressBar
This commit is contained in:
@@ -85,7 +85,7 @@ public class DialogUtils {
|
|||||||
* @param formatArgs the format arguments for the message id
|
* @param formatArgs the format arguments for the message id
|
||||||
*/
|
*/
|
||||||
private static ProgressDialog createProgressDialog(boolean spinner, final Context context, int messageId, DialogInterface.OnCancelListener onCancelListener, Object... formatArgs) {
|
private static ProgressDialog createProgressDialog(boolean spinner, final Context context, int messageId, DialogInterface.OnCancelListener onCancelListener, Object... formatArgs) {
|
||||||
final ProgressDialog progressDialog = new ProgressDialog(context);
|
final ProgressDialog progressDialog = new ProgressDialog(context, R.style.ThemeCustomNotTransparent);
|
||||||
progressDialog.setCancelable(true);
|
progressDialog.setCancelable(true);
|
||||||
progressDialog.setCanceledOnTouchOutside(false);
|
progressDialog.setCanceledOnTouchOutside(false);
|
||||||
progressDialog.setIcon(R.drawable.ic_dialog_info_24dp);
|
progressDialog.setIcon(R.drawable.ic_dialog_info_24dp);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<style name="ProgressBarCustom" parent="android:Widget.Holo.ProgressBar.Horizontal">
|
<style name="ProgressBarCustom" parent="android:Widget.Holo.ProgressBar.Horizontal">
|
||||||
<item name="android:progressTint">@color/holo_orange_dark</item>
|
<item name="android:progressTint">@color/holo_orange_dark</item>
|
||||||
<item name="android:indeterminateTint">@color/holo_orange_dark</item>
|
<item name="android:indeterminateTint">@color/holo_orange_dark</item>
|
||||||
|
<item name="android:indeterminateTintMode">src_in</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SpinnerCustom" parent="android:Widget.Holo.Spinner">
|
<style name="SpinnerCustom" parent="android:Widget.Holo.Spinner">
|
||||||
|
|||||||
@@ -36,6 +36,14 @@ limitations under the License.
|
|||||||
<item name="windowActionModeOverlay">true</item>
|
<item name="windowActionModeOverlay">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="ThemeCustomNotTransparent" parent="ThemeCustom">
|
||||||
|
<!-- TODO Remove when moving to settings to fragments. -->
|
||||||
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
<item name="android:windowIsFloating">true</item>
|
||||||
|
<item name="android:backgroundDimEnabled">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="ThemeCustomTransparent" parent="ThemeCustom">
|
<style name="ThemeCustomTransparent" parent="ThemeCustom">
|
||||||
<!-- TODO Remove when moving to settings to fragments. -->
|
<!-- TODO Remove when moving to settings to fragments. -->
|
||||||
<item name="android:windowIsTranslucent">true</item>
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user