what-the-bank/sources/io/flutter/plugins/pathprovider/StorageDirectoryMapper.java

40 lines
1.2 KiB
Java

package io.flutter.plugins.pathprovider;
import android.os.Environment;
/* loaded from: classes6.dex */
class StorageDirectoryMapper {
StorageDirectoryMapper() {
}
static String androidType(Integer num) throws IllegalArgumentException {
if (num == null) {
return null;
}
switch (num.intValue()) {
case 0:
return Environment.DIRECTORY_MUSIC;
case 1:
return Environment.DIRECTORY_PODCASTS;
case 2:
return Environment.DIRECTORY_RINGTONES;
case 3:
return Environment.DIRECTORY_ALARMS;
case 4:
return Environment.DIRECTORY_NOTIFICATIONS;
case 5:
return Environment.DIRECTORY_PICTURES;
case 6:
return Environment.DIRECTORY_MOVIES;
case 7:
return Environment.DIRECTORY_DOWNLOADS;
case 8:
return Environment.DIRECTORY_DCIM;
case 9:
return Environment.DIRECTORY_DOCUMENTS;
default:
throw new IllegalArgumentException("Unknown index: ".concat(String.valueOf(num)));
}
}
}