borders again on loopmode label
This commit is contained in:
parent
b1f3bb17bb
commit
b7f4dd3366
2 changed files with 9 additions and 2 deletions
|
@ -430,7 +430,7 @@ public class OverviewFragment extends Fragment {
|
|||
final LoopPlugin.LastRun finalLastRun = LoopPlugin.lastRun;
|
||||
if (Config.APS) {
|
||||
apsModeView.setVisibility(View.VISIBLE);
|
||||
apsModeView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.colorCancelTempButton));
|
||||
apsModeView.setBackgroundResource(R.drawable.loopmodeborder);
|
||||
LoopPlugin activeloop = MainApp.getConfigBuilder().getActiveLoop();
|
||||
if(activeloop != null && activeloop.isEnabled(activeloop.getType())) {
|
||||
if (MainApp.getConfigBuilder().isClosedModeEnabled()) {
|
||||
|
@ -439,7 +439,7 @@ public class OverviewFragment extends Fragment {
|
|||
apsModeView.setText(MainApp.sResources.getString(R.string.openloop));
|
||||
}
|
||||
} else {
|
||||
apsModeView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.colorSetExtendedButton));
|
||||
apsModeView.setBackgroundResource(R.drawable.loopmodedisabledborder);
|
||||
apsModeView.setText(MainApp.sResources.getString(R.string.disabledloop));
|
||||
}
|
||||
} else {
|
||||
|
|
7
app/src/main/res/drawable/loopmodedisabledborder.xml
Normal file
7
app/src/main/res/drawable/loopmodedisabledborder.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="@color/colorSetExtendedButton" />
|
||||
<stroke android:width="1dip" android:color="@android:color/white"/>
|
||||
<corners
|
||||
android:radius="2dp" >
|
||||
</corners>
|
||||
</shape>
|
Loading…
Reference in a new issue