Skip to content

Commit 591be1d

Browse files
author
Chris Bellew
committed
Changed colors of buttons in feedback popup.
1 parent c173695 commit 591be1d

File tree

7 files changed

+61
-24
lines changed

7 files changed

+61
-24
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ buildscript {
33
repositories {
44
mavenCentral()
55
}
6+
67
dependencies {
78
classpath 'com.android.tools.build:gradle:+'
9+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
810
}
911
}
1012

13+
plugins {
14+
id "com.jfrog.bintray" version "1.6"
15+
}
16+
1117
allprojects {
1218
repositories {
1319
mavenCentral()

mobile/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ dependencies {
138138
compile 'com.jakewharton:disklrucache:2.0.2'
139139
compile files('libs/commons-io-2.4.jar')
140140
compile project(':shared')
141+
compile project(':multistatetogglebutton')
141142
compile files('libs/org.apache.http.legacy.jar')
142143
compile 'de.hdodenhof:circleimageview:2.0.0'
143-
compile 'org.honorato.multistatetogglebutton:multistatetogglebutton:0.2.0'
144+
// compile 'org.honorato.multistatetogglebutton:multistatetogglebutton:0.2.0'
144145
compile 'com.jakewharton:butterknife:7.0.1'
145146
compile 'com.google.android.libraries.cast.companionlibrary:ccl:2.8.2'
146147
}

mobile/src/main/java/com/atomjack/vcfp/activities/MainActivity.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ protected void onStop() {
511511
handler.removeCallbacks(refreshServers);
512512
handler.removeCallbacks(refreshClients);
513513
plexSubscription.removeListener(plexSubscriptionListener);
514-
515-
// TODO: Remove castplayermanager listener
514+
mMediaRouter.removeCallback(mMediaRouterCallback);
516515
}
517516

518517
@Override
@@ -1675,6 +1674,13 @@ public void onValueChanged(int value) {
16751674
}
16761675
}
16771676
});
1677+
Button popupFeedbackOKButton = (Button)view.findViewById(R.id.popupFeedbackOKButton);
1678+
popupFeedbackOKButton.setOnClickListener(new View.OnClickListener() {
1679+
@Override
1680+
public void onClick(View v) {
1681+
dialog.dismiss();
1682+
}
1683+
});
16781684
dialog.show();
16791685
}
16801686

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:shape="rectangle">
5+
<solid
6+
android:color="@color/settings_popup_background" />
7+
<stroke
8+
android:width="1dp"
9+
android:color="@color/white" />
10+
</shape>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:shape="rectangle">
5+
<solid
6+
android:color="@color/primary_600" />
7+
</shape>

mobile/src/main/res/layout/popup_feedback.xml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,7 @@
1313
android:text="@string/help_feedback"
1414
android:id="@+id/textView18"
1515
android:textColor="@color/white"/>
16-
<!--
17-
<RelativeLayout
18-
android:layout_width="match_parent"
19-
android:layout_height="match_parent">
2016

21-
<TextView
22-
android:layout_width="wrap_content"
23-
android:layout_height="wrap_content"
24-
android:textAppearance="?android:attr/textAppearanceLarge"
25-
android:text="Large Text"
26-
android:id="@+id/textView21"/>
27-
28-
<Button
29-
android:layout_width="wrap_content"
30-
android:layout_height="wrap_content"
31-
android:text="New Button"
32-
android:id="@+id/button2"
33-
android:layout_alignParentTop="true"
34-
android:layout_alignParentRight="true"
35-
android:layout_alignParentEnd="true"/>
36-
</RelativeLayout>
37-
-->
3817
<RelativeLayout
3918
android:layout_width="match_parent"
4019
android:layout_height="match_parent"
@@ -56,6 +35,10 @@
5635
android:layout_width="wrap_content"
5736
android:layout_height="wrap_content"
5837
mstb:values="@array/feedback_options"
38+
mstb:mstbColorPressedBackgroundResource="@drawable/feedback_button_pressed"
39+
mstb:mstbColorPressedForeground="@color/white"
40+
mstb:mstbColorNotPressedBackgroundResource="@drawable/feedback_button_not_pressed"
41+
mstb:mstbColorNotPressedForeground="@color/white"
5942
android:id="@+id/feedbackToggleButton"
6043
android:layout_alignParentTop="true"
6144
android:layout_alignParentRight="true"
@@ -83,10 +66,31 @@
8366
android:layout_width="wrap_content"
8467
android:layout_height="wrap_content"
8568
mstb:values="@array/feedback_options"
69+
mstb:mstbColorPressedBackgroundResource="@drawable/feedback_button_pressed"
70+
mstb:mstbColorPressedForeground="@color/white"
71+
mstb:mstbColorNotPressedBackgroundResource="@drawable/feedback_button_not_pressed"
72+
mstb:mstbColorNotPressedForeground="@color/white"
8673
android:id="@+id/errorsToggleButton"
8774
android:layout_alignParentTop="true"
8875
android:layout_alignParentRight="true"
8976
android:layout_alignParentEnd="true"/>
9077

9178
</RelativeLayout>
79+
80+
<RelativeLayout
81+
android:layout_width="match_parent"
82+
android:layout_height="match_parent"
83+
android:layout_marginTop="20dp">
84+
85+
<Button
86+
android:layout_width="wrap_content"
87+
android:layout_height="wrap_content"
88+
android:text="@string/ok"
89+
android:id="@+id/popupFeedbackOKButton"
90+
android:layout_alignParentTop="true"
91+
android:layout_alignParentRight="true"
92+
android:layout_alignParentEnd="true"
93+
android:textColor="@color/white"/>
94+
</RelativeLayout>
95+
9296
</LinearLayout>

settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
include ':wear', ':shared'
22
include ':mobile'
3+
include ':multistatetogglebutton'
4+
project(':multistatetogglebutton').projectDir = new File('multistatetogglebutton/multistatetogglebutton')
5+

0 commit comments

Comments
 (0)