Skip to content

Commit

Permalink
GibQuote v2.7.2 | Fixes unchanged Quote Provider
Browse files Browse the repository at this point in the history
Signed-off-by: a7r3 <arvindultimate7352@gmail.com>
  • Loading branch information
a7r3 committed Jan 19, 2018
1 parent aa90e85 commit 139d0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 16
targetSdkVersion 27
versionCode 2
versionName '2.7.1'
versionName '2.7.2'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ public void onClick(View view) {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
chosenProviderIndex = i;
changeProvider(quoteProviders[chosenProviderIndex]);
}
});
builder.setPositiveButton("Select", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
changeProvider(quoteProviders[chosenProviderIndex]);
hideFabMenu(true, "Getting Quotes from " + quoteProviders[chosenProviderIndex]);
}
});
Expand Down Expand Up @@ -421,6 +421,7 @@ public void run() {
// Method to change JSON parameters based on the quoteProvider selected
// 'Offline' has no relevance here
private void changeProvider(String quoteProvider) {
this.quoteProvider = quoteProvider;
switch (quoteProvider) {
case "Forismatic":
default:
Expand Down

0 comments on commit 139d0f9

Please sign in to comment.