-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solved bug on Navigating back from ConversionResultActivity
- Loading branch information
Showing
4 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
app/src/main/java/com/android/cryptocurapp/utils/TextSingleton.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.android.cryptocurapp.utils; | ||
|
||
/** | ||
* Created by ILENWABOR DAVID on 16/03/2018. | ||
*/ | ||
|
||
public class TextSingleton { | ||
private static final TextSingleton ourInstance = new TextSingleton(); | ||
private String cryptoText, baseText; | ||
|
||
public static TextSingleton getInstance() { | ||
return ourInstance; | ||
} | ||
|
||
private TextSingleton() { | ||
} | ||
|
||
public String getCryptoText() { | ||
return cryptoText; | ||
} | ||
|
||
public void setCryptoText(String cryptoText) { | ||
this.cryptoText = cryptoText; | ||
} | ||
|
||
public String getBaseText() { | ||
return baseText; | ||
} | ||
|
||
public void setBaseText(String baseText) { | ||
this.baseText = baseText; | ||
} | ||
} |