Browse Source

Merge remote-tracking branch 'github-desktop-ammargitham/task/add-favourites' into pr/170

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
3c5d73e28e
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 4
      app/build.gradle
  2. 5
      app/src/main/java/awais/instagrabber/InstaGrabberApplication.java
  3. 8
      app/src/main/java/awais/instagrabber/activities/MainActivity.java

4
app/build.gradle

@ -7,7 +7,7 @@ android {
defaultConfig {
applicationId 'me.austinhuang.instagrabbr'
minSdkVersion 16
minSdkVersion 21
targetSdkVersion 29
versionCode 51
@ -54,7 +54,7 @@ dependencies {
implementation "androidx.constraintlayout:constraintlayout:2.0.1"
implementation "androidx.preference:preference:$preference_version"
implementation 'com.github.hendrawd:StorageUtil:1.1.0'
// implementation 'com.github.hendrawd:StorageUtil:1.1.0'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'com.facebook.fresco:fresco:2.3.0'

5
app/src/main/java/awais/instagrabber/InstaGrabberApplication.java

@ -1,11 +1,10 @@
package awais.instagrabber;
import android.app.Application;
import android.content.ClipboardManager;
import android.content.Context;
import android.util.Log;
import androidx.multidex.MultiDexApplication;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
@ -27,7 +26,7 @@ import static awais.instagrabber.utils.Utils.datetimeParser;
import static awais.instagrabber.utils.Utils.logCollector;
import static awais.instagrabber.utils.Utils.settingsHelper;
public final class InstaGrabberApplication extends MultiDexApplication {
public final class InstaGrabberApplication extends Application {
private static final String TAG = "InstaGrabberApplication";
@Override

8
app/src/main/java/awais/instagrabber/activities/MainActivity.java

@ -39,9 +39,7 @@ import androidx.navigation.ui.NavigationUI;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import hendrawd.storageutil.library.StorageUtil;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -160,9 +158,9 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
}
getSupportFragmentManager().addOnBackStackChangedListener(this);
Log.d("austin_debug", "dir: "+Arrays.toString(StorageUtil.getStorageDirectories(getApplicationContext())));
final File sdcard = new File(StorageUtil.getStorageDirectories(getApplicationContext())[0]);
Log.d("austin_debug", "files: "+Arrays.toString(sdcard.listFiles()));
// Log.d("austin_debug", "dir: "+Arrays.toString(StorageUtil.getStorageDirectories(getApplicationContext())));
// final File sdcard = new File(StorageUtil.getStorageDirectories(getApplicationContext())[0]);
// Log.d("austin_debug", "files: "+Arrays.toString(sdcard.listFiles()));
}
@Override

Loading…
Cancel
Save