(Bundle savedInstanceState)
| 202 | private static final int REQUEST_DEBUG_INFO = 7000; |
| 203 | |
| 204 | @Override |
| 205 | @SuppressLint("MissingSuperCall") |
| 206 | protected void onCreate(Bundle savedInstanceState) { |
| 207 | super.onCreate(savedInstanceState, false); |
| 208 | |
| 209 | if (savedInstanceState != null) { |
| 210 | Intent intent = savedInstanceState.getParcelable("fair:intent"); |
| 211 | if (intent != null) |
| 212 | setIntent(intent); |
| 213 | } |
| 214 | |
| 215 | // Workaround stale intents from recent apps screen |
| 216 | boolean recents = (getIntent().getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0; |
| 217 | if (recents) { |
| 218 | Intent intent = getIntent(); |
| 219 | Log.i("Stale intent=" + intent); |
| 220 | intent.setAction(null); |
| 221 | } |
| 222 | |
| 223 | LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this); |
| 224 | IntentFilter iff = new IntentFilter(); |
| 225 | iff.addAction(ACTION_NEW_MESSAGE); |
| 226 | iff.addAction((ACTION_SENT_MESSAGE)); |
| 227 | lbm.registerReceiver(creceiver, iff); |
| 228 | |
| 229 | if (savedInstanceState != null) { |
| 230 | initialized = savedInstanceState.getBoolean("fair:initialized"); |
| 231 | searching = savedInstanceState.getBoolean("fair:searching"); |
| 232 | } |
| 233 | |
| 234 | colorDrawerScrim = Helper.resolveColor(this, R.attr.colorDrawerScrim); |
| 235 | |
| 236 | final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); |
| 237 | startup = prefs.getString("startup", "unified"); |
| 238 | nav_expanded = getDrawerExpanded(); |
| 239 | nav_pinned = getDrawerPinned(); |
| 240 | nav_options = prefs.getBoolean("nav_options", true); |
| 241 | |
| 242 | // Fix imported settings from other device |
| 243 | if (nav_expanded && nav_pinned && !canExpandAndPin()) |
| 244 | nav_pinned = false; |
| 245 | |
| 246 | infoTracker = new WindowInfoTrackerCallbackAdapter(WindowInfoTracker.getOrCreate(this)); |
| 247 | |
| 248 | Configuration config = getResources().getConfiguration(); |
| 249 | boolean portrait2 = prefs.getBoolean("portrait2", false); |
| 250 | boolean portrait2c = prefs.getBoolean("portrait2c", false); |
| 251 | int portrait_min_size = prefs.getInt("portrait_min_size", 0); |
| 252 | boolean landscape = prefs.getBoolean("landscape", true); |
| 253 | int landscape_min_size = prefs.getInt("landscape_min_size", 0); |
| 254 | int layout = (config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK); |
| 255 | Log.i("Orientation=" + config.orientation + " layout=" + layout + |
| 256 | " portrait rows=" + portrait2 + " cols=" + portrait2c + " min=" + portrait_min_size + |
| 257 | " landscape cols=" + landscape + " min=" + landscape_min_size); |
| 258 | boolean duo = Helper.isSurfaceDuo(); |
| 259 | boolean canFold = Helper.canFold(this); |
| 260 | boolean close_pane = prefs.getBoolean("close_pane", !duo && !canFold); |
| 261 | boolean nav_categories = prefs.getBoolean("nav_categories", false); |
nothing calls this directly
no test coverage detected