This repository has been archived by the owner on Jun 20, 2018. It is now read-only.
-
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.
Moved default prefs to App Added Internet permission for Crashlytics
- Loading branch information
Showing
5 changed files
with
51 additions
and
4 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
27 changes: 27 additions & 0 deletions
27
app/src/main/java/ca/mudar/rotationquicksetting/RotationQSApp.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,27 @@ | ||
package ca.mudar.rotationquicksetting; | ||
|
||
import android.app.Application; | ||
|
||
import com.crashlytics.android.Crashlytics; | ||
|
||
import ca.mudar.rotationquicksetting.data.UserPrefs; | ||
import io.fabric.sdk.android.Fabric; | ||
|
||
/** | ||
* Created by mudar on 22/05/17. | ||
*/ | ||
|
||
public class RotationQSApp extends Application { | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
|
||
if (BuildConfig.USE_CRASHLYTICS) { | ||
Fabric.with(this, new Crashlytics()); | ||
} | ||
|
||
UserPrefs.setDefaults(this); | ||
|
||
} | ||
|
||
} |
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