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
---- Minecraft Crash Report ---- | |
// Hey, that tickles! Hehehe! | |
Time: 2021-03-23 20:08:07 EET | |
Description: Error executing task | |
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 13, Size: 0 | |
at java.util.concurrent.FutureTask.report(FutureTask.java:122) | |
at java.util.concurrent.FutureTask.get(FutureTask.java:192) | |
at net.minecraft.util.Util.runTask(Util.java:531) |
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
@Module | |
object RemoteModule { | |
@Provides | |
@JvmStatic | |
fun provideService(): Service = ServiceFactory.getService(BuildConfig.DEBUG) | |
} | |
object ServiceFactory { |
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
// Ask for permission to read storage | |
if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) | |
!= PackageManager.PERMISSION_GRANTED) { | |
if (ActivityCompat.shouldShowRequestPermissionRationale(this, | |
Manifest.permission.READ_EXTERNAL_STORAGE)) { | |
// This will happen if the user previously denied the permission | |
requestPermissions() | |
} else { | |
// We need to check if it's the first time we ask because | |
// shouldShowRequestPermissionRationale returns false in that case. |
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 Fragment is used to show a list of outfits in a recyclerview. For the blogger app integration | |
* a type needs to be provided for the different outfit categories (ready for review, draft, live, | |
* on hold). This might be reused for any kind of OutfitList. | |
*/ | |
public class OutfitListFragment extends Fragment { | |
// Constants | |
private static final String TAG = "OutfitListFragment"; | |
private static final String TYPE = "type"; |
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
public class BloggerAppFragment extends Fragment { | |
// Constants | |
private static final String TAG = "BloggerAppFragment"; | |
private static final String ID = "id"; | |
// Member variables | |
@InjectView(R.id.viewpager) | |
ViewPager mViewPager; | |
@InjectView(R.id.tab_layout) | |
TabLayout mTabLayout; |
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
//Load the request module | |
var request = require('request'); | |
//Lets configure and request | |
request({ | |
url: '', //URL to hit | |
method: 'POST' | |
} | |
}, function(err, response, body) { | |
if(!err && response.statusCode == 200) { |