forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Encrypted and plaintext (xml) backup / restore. - Removed apk expire. - Import unencrypted WhatsApp database (this option might be outdated). - Choose between passphrase protection and the Android screenlock. - Choice for the backup location: for Android 4 - 10, internal or removable storage; for Android 11+ any directory can be chosen. - Set the maptype in the place picker. - Option to treat view-once media as normal media. - Option to ignore remote deletion. - Choose between FCM or websocket notification delivery. - Option to delete only the media from a message, not the rest of the message. This does not remove the message or media on linked devices. - Removed forward limit. - Enabled internal preferences. Use at your own risk. - Added options to select who can add you to a group. - Activated chat folders.
- Loading branch information
Showing
122 changed files
with
5,110 additions
and
120 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
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
33 changes: 33 additions & 0 deletions
33
app/src/main/java/org/thoughtcrime/securesms/ExitActivity.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,33 @@ | ||
package org.thoughtcrime.securesms; | ||
|
||
import android.content.Intent; | ||
import android.app.Activity; | ||
import android.os.Build; | ||
import android.os.Bundle; | ||
|
||
public class ExitActivity extends Activity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
if (Build.VERSION.SDK_INT >= 21) { | ||
finishAndRemoveTask(); | ||
} else { | ||
finish(); | ||
} | ||
|
||
System.exit(0); | ||
} | ||
|
||
public static void exitAndRemoveFromRecentApps(Activity activity) { | ||
Intent intent = new Intent(activity, ExitActivity.class); | ||
|
||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | ||
| Intent.FLAG_ACTIVITY_CLEAR_TASK | ||
| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS | ||
| Intent.FLAG_ACTIVITY_NO_ANIMATION); | ||
|
||
activity.startActivity(intent); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
app/src/main/java/org/thoughtcrime/securesms/ImportExportActivity.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,46 @@ | ||
package org.thoughtcrime.securesms; | ||
|
||
import android.os.Bundle; | ||
import android.view.MenuItem; | ||
|
||
import org.thoughtcrime.securesms.util.DynamicLanguage; | ||
import org.thoughtcrime.securesms.util.DynamicTheme; | ||
|
||
|
||
public class ImportExportActivity extends PassphraseRequiredActivity { | ||
|
||
@SuppressWarnings("unused") | ||
private static final String TAG = ImportExportActivity.class.getSimpleName(); | ||
|
||
private DynamicTheme dynamicTheme = new DynamicTheme(); | ||
private DynamicLanguage dynamicLanguage = new DynamicLanguage(); | ||
|
||
@Override | ||
protected void onPreCreate() { | ||
dynamicTheme.onCreate(this); | ||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState, boolean ready) { | ||
assert getSupportActionBar() != null; | ||
getSupportActionBar().setDisplayHomeAsUpEnabled(true); | ||
initFragment(android.R.id.content, new ImportExportFragment(), dynamicLanguage.getCurrentLocale()); | ||
} | ||
|
||
@Override | ||
public void onResume() { | ||
dynamicTheme.onResume(this); | ||
super.onResume(); | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
super.onOptionsItemSelected(item); | ||
|
||
switch (item.getItemId()) { | ||
case android.R.id.home: finish(); return true; | ||
} | ||
|
||
return false; | ||
} | ||
} |
Oops, something went wrong.