Skip to content

Commit

Permalink
Solve bug #9 add maven for google
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Feb 8, 2018
1 parent c6774b0 commit 83fa686
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
Expand All @@ -12,6 +16,10 @@ buildscript {
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class ChromaPreferenceFragmentCompat extends PreferenceFragmentC
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = super.onCreateView(inflater, container, savedInstanceState);

ChromaDialog chromaDialog = (ChromaDialog) getChildFragmentManager().findFragmentByTag(TAG_FRAGMENT_DIALOG);
ChromaDialog chromaDialog = (ChromaDialog) getFragmentManager().findFragmentByTag(TAG_FRAGMENT_DIALOG);
if (chromaDialog != null) {
String keyPreference = chromaDialog.getKeyPreference();
if (keyPreference != null)
Expand Down Expand Up @@ -61,7 +61,7 @@ public void onDisplayPreferenceDialog(Preference preference) {
// If it was one of our custom Preferences, show its dialog
if (dialogFragment != null) {
dialogFragment.setTargetFragment(this, 0);
dialogFragment.show(getChildFragmentManager(), TAG_FRAGMENT_DIALOG);
dialogFragment.show(getFragmentManager(), TAG_FRAGMENT_DIALOG);
}
// Could not be handled here. Try with the super method.
else {
Expand Down

0 comments on commit 83fa686

Please sign in to comment.