aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-11-13 14:11:56 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-11-13 14:11:56 +0000
commitd0f0647bc8deeff87f297b4d60f6ed58a17a0d31 (patch)
tree2f82a355bbe8e953a9c0ce335b90578ddc791296 /app/src
parentf8c15e03af5a28251ee1abc88b1be1b1bbf8ad82 (diff)
downloadinfinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar.gz
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar.bz2
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar.lz
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar.xz
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.tar.zst
infinity-for-reddit-d0f0647bc8deeff87f297b4d60f6ed58a17a0d31.zip
Version 5.1.0-beta3.
Diffstat (limited to '')
-rw-r--r--app/src/main/AndroidManifest.xml11
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/utils/EditProfileUtils.java18
2 files changed, 15 insertions, 14 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 14b7f150..1a7707e6 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -34,6 +34,11 @@
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:replace="android:label">
+ <activity android:name=".activities.EditProfileActivity"
+ android:label="@string/edit_profile_activity_label"
+ android:parentActivityName=".activities.MainActivity"
+ android:theme="@style/AppTheme.Slidable"
+ android:windowSoftInputMode="adjustPan" />
<activity
android:name=".activities.WikiActivity"
android:label="@string/wiki_activity_label"
@@ -393,12 +398,6 @@
android:parentActivityName=".activities.MainActivity"
android:theme="@style/AppTheme.SlidableWithTranslucentWindow" />
- <activity android:name=".activities.EditProfileActivity"
- android:label="@string/edit_profile_activity_label"
- android:parentActivityName=".activities.MainActivity"
- android:theme="@style/AppTheme.Slidable"
- android:windowSoftInputMode="adjustPan" />
-
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="ml.docilealligator.infinityforreddit.provider"
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/EditProfileUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/EditProfileUtils.java
index 5293bc71..f66fe648 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/EditProfileUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/EditProfileUtils.java
@@ -1,28 +1,30 @@
package ml.docilealligator.infinityforreddit.utils;
import android.graphics.Bitmap;
+
import androidx.annotation.NonNull;
+
import com.google.gson.Gson;
+
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.io.ByteArrayOutputStream;
+import java.util.HashMap;
+import java.util.Map;
+
import ml.docilealligator.infinityforreddit.apis.RedditAPI;
import ml.docilealligator.infinityforreddit.subreddit.SubredditSettingData;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
-import org.json.JSONException;
-import org.json.JSONObject;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
-import java.io.ByteArrayOutputStream;
-import java.util.HashMap;
-import java.util.Map;
-
public final class EditProfileUtils {
-
-
public static void updateProfile(Retrofit oauthRetrofit,
String accessToken,
String accountName,